babyewok Posted July 27, 2010 Share Posted July 27, 2010 I want to hide a particular feature form the list. I have tried this as I used something similar to hide the colour select box and just have the picker visible: {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} but this doesn't seem to work here - any suggestions? Link to comment Share on other sites More sharing options...
rocky Posted July 28, 2010 Share Posted July 28, 2010 Try the following instead: {foreach from=$features item=feature} {if $feature.id_feature|intval != 10} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} {/if} {/foreach} Link to comment Share on other sites More sharing options...
babyewok Posted July 28, 2010 Author Share Posted July 28, 2010 Logical, but no joy! Link to comment Share on other sites More sharing options...
rocky Posted July 28, 2010 Share Posted July 28, 2010 I've updated my code. Try again. Link to comment Share on other sites More sharing options...
babyewok Posted July 28, 2010 Author Share Posted July 28, 2010 That one works - thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now