Skip to content

Instantly share code, notes, and snippets.

@Form2Content
Created January 8, 2015 15:46
Show Gist options
  • Save Form2Content/2a4c8bddbdcde689e0e4 to your computer and use it in GitHub Desktop.
Save Form2Content/2a4c8bddbdcde689e0e4 to your computer and use it in GitHub Desktop.
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}
{if in_array('SGR', $MEMBERSHIP_VALUES)}
<img src="images/logo_sgr.png">
{/if}
{if in_array('Calamiteitenfonds', $MEMBERSHIP_VALUES)}
<img src="images/logo_calamiteitenfonds.png">
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment