Friday, November 28, 2008

Widget : Link List in Drop Down

Add Link List as a widget to your blog in layouts with name "my list"
Goto Layouts -> Edit HTML -> Expand Widget.
Search for "my list"
Find Following Code Just Below this.
<b:includable id='main'> ( Do Not Delete this Code)

Starting from Just Below this Code Delet code,
Delete Upto Code
</b:widget>

place this code after ( <b:includable id='main'> )


<b:if cond='data:title'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<select onchange='location=this.options[this.selectedIndex].value;' style='width:200px'>
<option>Naruto Chapters</option>
<b:loop values='data:links' var='link'>
<option expr:value='data:link.target'><data:link.name/>
</option>
</b:loop>
</select>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

save and exit.

No comments:

Post a Comment