How To Set Links of a Linklist widget Open in a New Window

Posted by Lasantha Bandara on July 6th, 2009 File Under : html8 Comments

1.Login to your dashboard--> layout- -> Edit HTML

2.Click on "Expand Widget Templates"

3.Scroll down to till you see your Link list code :

(Note : You may also can find it by searching <b:widget id='LinkList )

Look at the example below.

<b:widget id='LinkList12' locked='false' title='Recomended 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>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

Now put blue colored code ( target='_blank' ) as the example below into your Link list code.

<b:widget id='LinkList12' locked='false' title='Recomended 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>
</ul>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

Important : You must include the space before target='_blank' as the example above.

Now save your template and you are done.

File Under : html

Related Posts

8 Responses to “How To Set Links of a Linklist widget Open in a New Window”

  1. Saim Shah says:

    Great post I have used your technique on my blog please check it out and tell me if its rite..
    Make friends with Desi Babes!

    Thanks to Author!

  2. Muzzerino says:

    You sir, are a legend!

    thanks for posting this, it has helped a great deal on my blog.

    all the best,

    Devonport Pages

  3. mido says:

    thank you bro

  4. Marcos says:

    Thank you!

  5. Craig says:

    Is there a way to target a particular link on the Menu. I just want "Gameplays" on my link list to open in a new tab. Can you please let me know if you can help? would really appreciate it.

    Thank you

  6. Helyn says:

    Thanks! Worked great.

  7. woo says:

    it works perfect, but don't know how to do for just 1 link in the list.

  8. Vishnu says:

    Thank u...

Leave a Reply