2008-05-19

Blogging Tip : List links open in new window

The method is almost the same as to make label links open in new window. Earlier, you may have created a list of links as your video links, music links, blog roll etc. but having those links will open in the same window.

This below example demonstrates how:-

1- Click on Dashboard> Layout> Edit Html
2- Look for Expand Widget Templates and tick the box.
3- Find this code:-
<b:widget id='LinkList1' locked='false' title='Links' type='LinkList'>
<b:includable id='main'>

<b:if cond='data:title'>
<h2><data:title/></h2></b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target' target='_blank'><data:link.name/></a></li>
</b:loop>


4- Add this line in blue color as shown above.
target='_blank'

5- Save the template.

0 comments:

Post a Comment

1. Comments posted must be accompanied by names or pseudonyms.
2. Anonymous posting and those containing profanities will be rejected.
3. Comments are moderated due to spam problems. I have to approve the comment before it will show up.

:)) ;)) ;;) :D ;) :p :(( :) :( :X
=(( :-o :-/ :-* :| 8-} :)] :-t b-( :-L