Skip to content

Instantly share code, notes, and snippets.

View Form2Content's full-sized avatar

Form2Content Form2Content

View GitHub Profile
Form2Content / Display related article data based on Database lookup field and using Form2Content Anywhere plugin
Last active November 7, 2017 15:25
The code below will create a UIkit 2 slideset displaying Images with banner text and read more to related articles. This relation is created by adding a Database lookup field in the F2C form of the current content type and allowing users to select related articles. More info:…
<div data-uk-slideset="{ldelim}small: 1, medium: 1, large: 1{rdelim}">
<div class="uk-slidenav-position">
<ul class="uk-grid uk-grid-collapse uk-slideset">
{ldelim}F2cAnywhere id={foreach from=$RELEVANTE_PROJECTEN_VALUES key=k item=i name=whatever}{$k}{if $smarty.foreach.whatever.last}{else}, {/if}{/foreach}{rdelim}
<li class="uk-overlay">
<div class="uk-overlay-panel uk-overlay-right" style="padding:10px;background: rgba(255,255,255,0.6); width:50%; margin:20px;color: #444;"><h3>[:$JOOMLA_TITLE:]</h3>
<p class="uk-hidden-small">[:$BANNER_TEKST|truncate:100:]</p>
<div class="uk-align-right"><a href="[:$JOOMLA_ARTICLE_LINK_SEF:]" title="">Bekijk dit project ></a></div>
Form2Content / Form2Content Image Gallery with YOOtheme's UIkit
Last active March 15, 2017 12:33 — forked from pjdevries/Form2Content Image Gallery with YOOtheme's UIkit
This is Form2Content template code that will generate an image gallery in your Joomla article based on the UIkit framework. It uses a Form2Content image gallery field with name IMAGE_GALLERY as input. See resulting gallery here:
Form2Content / F2C-KML-Feed-Placemarker-Smarty-template
Created January 11, 2015 13:06
This is a Google Maps place marker Smarty template for use with Form2Content KML Feeds. It includes several explanations of the code. The results can be seen on
{* This is a SMARTY placemarker template for the Form2Content KML extension. It is an example which I have used for a project and shows how you can use the F2C fields (data) within a custom placemarker.*}
{*text between these tags won't be rendered into your placemarker*}
{*I use the _RAW template parameter to show HTML as is*}
Form2Content / if-in-array-content
Created January 8, 2015 15:46
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">
Form2Content / F2C-Gallery-field-first-image
Last active August 29, 2015 14:13
First image from the F2C Image gallery field: useful for intro image, including read more link (SEF)