feeling little dumb for this.
What I am trying to do is to make my list of checkboxes checked depending on {segment_5}
If the value is '6', that is easy with
<input type="checkbox" name="categories[]" value="{category_id}" {if '{segment_5}' == '{category_id}'}checked='checked'{/if} /> {category_name}
I am in a situation where my url goes like this 'site.dev/search/geo/n31lj/6-7' from doing a search.
Look at {segment_5}, the value is '6-7', multiple categories have been selected.
How can I tell the {category_id} to pick up 6 or 7 inside the {segment_5} with conditionals?
Look at this link, I have tried but it not possible.
http://ellislab.com/expressionengine/user-guide/templates/globals/conditionals.html#comment_box_9433