F2C Smarty code (snippets)

Featured articles only ...

Ever want to have specific layout/styling of an article for the front-page of your website? And accomplish this without having to create a separate content type? Welkom the $JOOMLA_FEATURED template variable.
The reason this works is because every time you feature/un-feature an article in the F2C article manager, the article is re-saved and thus re-rendered. Please note that the changes of the featured articles willl also be visible in normal category blog layout (or other views for that matter).

How to use:

This is the simple Smarty code. I added an extra couple of lines so you can see how to combine the code.

.... Homepage layout ....
{elseif $JOOMLA_CATEGORY_ID|contains:"8"}
.... Joomla Category 8 layout ...
.... all other articles .....

F2C Cheat-sheet

An overview of all template parameters (placeholders for your form data). These are used in your F2C intro and main template to parse the data from your submission forms into the Joomla article.



Form2Content, a Joomla CCK Documentation © 2010 - 2015 Open Source Design | Powered by Form2Content