Tuesday, November 11, 2008

Widget : Labels in Drop Down

Go to Layouts
Add widget Labels With Name MyLabels
Save Changes
Edit Html Code for template
Expand widgets

Search for My Lables
Replace Pink code Upto </b:widget>.

<b:widget id='Label2' locked='false' title='MyLabels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<br/>

<select onchange='location=this.options[this.selectedIndex].value;' style='width:200px'>
<option>Select Celebrity</option>
<b:loop values='data:labels' var='label'>
<option expr:value='data:label.url'><data:label.name/>
</option>
</b:loop>
</select>

<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

No comments:

Post a Comment