Just show category in the search.php

Discussion in 'Technical Support' started by banimp3, Jul 3, 2009.

Thread Status:
Not open for further replies.
  1. banimp3 Customer

    Hello,

    Any one know how I can just display the category's at the search.php.

    I don't want to display all the Sub-category (They are many).
  2. Mike-N-Tosh Owner

    I may be wrong, but I don't think that you could do that with the Designer version as it would require modification of ".php" files.
  3. banimp3 Customer

    And if i opt to upgrade to the Developer version. What have to be done?
  4. banimp3 Customer

    Any one know how to make this?
  5. banimp3 Customer

    The support team explain me how to do, they rocks.

    If anyone is interested in this - just reply here, and I'll explain.
  6. gramlou Customer

    Hello, i am interested. Could you explain? Thanks
  7. banimp3 Customer

    FInd the thext code in your template search.tpl:

    PHP:

      
    {foreach from=$getcats item=cat}
                                                            <
    option {if $cat.parent_id == 0}class="parent" {/if}value="{$cat.id}"{if $type==$ca$
                                                    {/foreach}

    and replace for:


    PHP:

      
    {foreach from=$getcats item=cat}
                                                             {if 
    $cat.parent_id == 0}
                                                            <
    option {if $cat.parent_id == 0}class="parent" {/if}value="{$cat.id}"{if $type==$ca$
                                                             {/if}
                                                    {/foreach}

    And that's it ;)
  8. gramlou Customer

    Great! Solution is not too long! Thank you!
Thread Status:
Not open for further replies.

Share This Page