All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

low search categories parent category indent

Michel 27 Nov 2016 17:58 question, complete

Hi,

if I use this:


<select name="category[]" id="categoriesRegios" size="20" multiple="multiple" style="width: 100%" >
{exp:channel:categories category_group="3" style="linear"}
<option value="{category_id}" {if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>{category_name}</option>
{/exp:channel:categories}
</select>


inside a channel:form tag, it uses the indented display following the levels of my parent/child categories.

If I use it inside the low:search tag, it lists it as a linear list, without indenting the child categories.

Does anyone know how I can fix this?

Many thanks,
Michel

Replies

  1. Low 29 Nov 2016 07:47

    I wouldn't know why the channel:categories tag would behave differently when it's nested in a channel:form tag. Also, not really a Low Search issue.

    But -- if you're only after a single level of indentation -- you could use a conditional to check for a parent_id and add some non-breaking spaces if it's not 0.