croxton / Wires

Wire up your forms to URI segments. Search, filter sort and order entries with clean, readable uris.
7 stars 1 forks source link

Conditional on sample code #2

Open robsonsobral opened 10 years ago

robsonsobral commented 10 years ago

Hi, Mark!

I was implementing this addon and found something on the sample code that doesn't work on EECMS 2.9:

{if category_id IN ({category})} selected="selected"{/if}>{category_name}

It could be replaced by the Contains and the Concatenation operators:

{if "|" . {category} . "|" *= "|" . category_id . "|"} selected="selected"{/if}>{category_name}

Thanks for the amazing addon.

Bye!

croxton commented 10 years ago

Awesome, thanks!