Dropdown menu for labels in Blogger
Solved
ladelsol
Posted messages
14
Status
Member
-
Captaine-NEMO Posted messages 39 Status Member -
Captaine-NEMO Posted messages 39 Status Member -
Hello,
How to install a dropdown menu in Blogger for labels?
Can someone give me the code?
Thanks everyone! Configuration: Windows Vista Internet Explorer 7.0
How to install a dropdown menu in Blogger for labels?
Can someone give me the code?
Thanks everyone! Configuration: Windows Vista Internet Explorer 7.0
4 answers
Hello,
I found it, but I'm looking to do the same thing for the titles of my messages.
Otherwise, for your question, here’s how to do it:
1- Go to modify the HTML code
2- Check “Develop gadget templates”
3 - Replace the following code (press ctrl + F and type Label1 to help you):
<b:widget id='Label1' locked='false' title='Label' type='Label'>
Until
</b:widget>
With this code:
<b:widget id='Label1' locked='false' title='Label' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<select class='postform' id='cat' name='cat' onchange='location=this.options[this.selectedIndex].value;'>
<option>Select category</option>
<b:loop values='data:labels' var='label'>
<option class='labellist' expr:value='data:label.url'><data:label.name/>
(<data:label.count/>)
</option>
</b:loop>
</select>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
And save.
Thank you for responding if you found the same thing to include all post titles.
I found it, but I'm looking to do the same thing for the titles of my messages.
Otherwise, for your question, here’s how to do it:
1- Go to modify the HTML code
2- Check “Develop gadget templates”
3 - Replace the following code (press ctrl + F and type Label1 to help you):
<b:widget id='Label1' locked='false' title='Label' type='Label'>
Until
</b:widget>
With this code:
<b:widget id='Label1' locked='false' title='Label' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<select class='postform' id='cat' name='cat' onchange='location=this.options[this.selectedIndex].value;'>
<option>Select category</option>
<b:loop values='data:labels' var='label'>
<option class='labellist' expr:value='data:label.url'><data:label.name/>
(<data:label.count/>)
</option>
</b:loop>
</select>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
And save.
Thank you for responding if you found the same thing to include all post titles.
I'm looking for a solution for my labels (cooking blog and labels that have become too important...) I tried your method but it's impossible, I can't find the line despite the help of your ctrl+F! I'm afraid I may have already modified the code and it didn't work! So it's a mix-up! Thank you for helping me www.unefaimdeloup.blogspot.com thank you.
Just put the titles in labels.
"http://www.leblogger.com/2009/06/recherche-blogger-champ-widget.html"