Hey guys,
Ive got a category drop down on my page using the following:
and in my com_cat_dropdown.html
Code
- <perch:before>
- <select name="categories" id="cat_menu" class="form-control">
- <option value="">Choose a category:</option>
- </perch:before>
- <option value="/community/<perch:category id="catSlug" type="slug" for="catTitle" />/">
- <perch:category id="catTitle" type="smarttext" />
- </option>
- <perch:after>
- </select>
- </perch:after>
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?