Hello, I’m sure that someone else already made this question but I can’t find it, if you know please give me the link… however: could you please explain me how to hide some weblog from the menu in the advanced search form?
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 29, 2010 6:31am
Subscribe [3]#1 / Jul 29, 2010 6:31am
Hello, I’m sure that someone else already made this question but I can’t find it, if you know please give me the link… however: could you please explain me how to hide some weblog from the menu in the advanced search form?
Thanks
#2 / Jul 29, 2010 12:39pm
If I remember correctly, I had to hard code the items that showed up.
#3 / Jul 30, 2010 3:43am
Hi Sue, could you give me some other info? Or do you remember the link? Thanks
#4 / Jul 30, 2010 10:52am
As Sue suggested, creating the form manually, as it were, might be the way to go. Copy & paste the code, then remove the weblogs you don’t want or need and put that in your template. Makes sense?
#5 / Jul 30, 2010 11:14am
A-ah! Now I see!
Sorry I didn’t undersand; you meant the multiselect code, it works thanks!
For any other user who will have this issue, find this code in your advanced search page:
<select id="weblog_id" name='weblog_id[]' class='multiselect' size='20' multiple='multiple'>
<option value="null" selected="selected">Qualsiasi Weblog</option>
<option value="88">Your weblog-name 1</option>
<option value="85">Your weblog-name 2</option>
<option value="71">Your weblog-name 3</option>
<option value="53">Your weblog-name 4</option>
<option value="5">Your weblog-name 4</option>
<option value="89">Your weblog-name 5</option>
</select>And change in something like
<select id="weblog_id" name='weblog_id[]' class='multiselect' size='20' multiple='multiple'>
<option value="null" selected="selected">Qualsiasi Weblog</option>
<option value="88">Your weblog-name 1</option>
<option value="89">Your weblog-name 2</option>
</select>Thanks and bye
Alberto
#6 / Jul 30, 2010 11:15am
Thanks for sharing what worked for you, Alberto! Please post again in case there’s anything else.