Article Templates

Why use Article Templates (& parameters)?

Form2Content needs to get the data from the forms into the Joomla article. To accomplish this we use the so called "article templates". For each field you use in the form we add a "placeholder" in the template. These placeholders we call template parameters. When you save your form the placeholders are replaced with the field data thus creating your article content.

Custom Article Templates

Using Article Templates to create consistent layout for your Joomla articles is very powerful. Think of batch updating and logic in your content as a few examples.

Smarty Templating

Article templating can be more than just a question of copy/pasting data. Use logic to check if a field is empty or show a different picture if one was not uploaded. Change the article layout depending on a choice or limit the number of words..... this can all be done using Smarty Templating.

SEF URLs for custom read more

Joomla (SEF) URLs require to have an item ID in the URL. But how do you know the item ID of a NEW article to which there is no menu link? This is the problem we had with our {$JOOMLA_ARTICLE_LINK} template parameter.

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