Posts by xenowebdev

    Hey guys,


    Ive got a category drop down on my page using the following:


    PHP
    1. <?php
    2. PerchSystem::set_var('page_cat', perch_get('cat'));
    3. perch_categories(array(
    4. 'set' => 'community',
    5. 'template' => 'com_cat_dropdown.html',
    6. 'filter' => 'catParentID',
    7. 'match' => 'eq',
    8. 'value' => 0
    9. ));
    10. ?>

    and in my com_cat_dropdown.html


    I'd like to have the drop down remain on the selected category when on the chosen page, hence trying to parse in the category from the URL using the PerchSystem::set_var.

    Can anyone point me in the right direction to achieve this please?

    Hey Lee,


    Are they part of the same radio group? eg you need the user to return the value of either 'bespoke' or 'modular'?


    You could try this:


    Code
    1. <perch:input id="your_id_here" type="radio" options="Bespoke,Modular">