ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Advanced search only in some weblog

July 29, 2010 6:31am

Subscribe [3]
  • #1 / Jul 29, 2010 6:31am

    twdbaba

    41 posts

    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

    Sue Crocker

    26054 posts

    If I remember correctly, I had to hard code the items that showed up.

  • #3 / Jul 30, 2010 3:43am

    twdbaba

    41 posts

    Hi Sue, could you give me some other info? Or do you remember the link? Thanks

  • #4 / Jul 30, 2010 10:52am

    Ingmar

    29245 posts

    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

    twdbaba

    41 posts

    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

    Ingmar

    29245 posts

    Thanks for sharing what worked for you, Alberto! Please post again in case there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases