Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add content based on F2C Multi-select (checkboxes) to your Joomla article. Smarty in_array function.
<!-- F2C multi-select field includes 3 checkboxes for 3 options (ANVR/SGR/Calamiteitenfonds) -->
<!-- F2C multi-select field name = MEMBERSHIP -->
{if in_array('ANVR', $MEMBERSHIP_VALUES)}
<img src="images/logo_anvr.png">
{if in_array('SGR', $MEMBERSHIP_VALUES)}
<img src="images/logo_sgr.png">
{if in_array('Calamiteitenfonds', $MEMBERSHIP_VALUES)}
<img src="images/logo_calamiteitenfonds.png">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment