Print

F2C Template parameters

Template Parameters are used to 'paste' the data (article information) from the F2C submission forms into the F2C Template (your article layout). This than creates the html for your Joomla article.

There are two types of Template Parameters, Joomla based parameters and Form2Content field parameters. The Joomla parameters are all the different values related to normal Joomla articles.

Simple example of Joomla based template parameter

The article title can be used anywhere in your F2C Template, simply add the {$JOOMLA_TITLE} parameter.

<h2>Author of {$JOOMLA_TITLE}</h2>

 

The template parameters can be used in combination with almost any Joomla plugin. The result: place your plugin tags in your F2C template and let your users simply add content.

Joomla based F2C Template Parameters (for Smarty templating)

Value Template Parameter Example for use LITE
Title {$JOOMLA_TITLE} place the tite in the alt text for an image for SEO tick
Title alias {$JOOMLA_TITLE_ALIAS} on request tick
Article ID {$JOOMLA_ID} ID of the article. tick
Section title {$JOOMLA_SECTION_TITLE} Section Title publish_x
Section ID {$JOOMLA_SECTION_ID} Create URLS publish_x
Section title alias {$JOOMLA_SECTION_ALIAS} Section Title Alias publish_x
Category title {$JOOMLA_CATEGORY_TITLE} Section Title publish_x
Category ID {$JOOMLA_CATEGORY_ID} Create URLS publish_x
Category title alias {$JOOMLA_CATEGORY_ALIAS} Section Title Alias publish_x
Start publish date {$JOOMLA_PUBLISH_UP} Start publish date tick
Stop publish date {$JOOMLA_PUBLISH_DOWN} Stoppublish date tick
Article Link {$JOOMLA_ARTICLE_LINK} To create your own read more .... tick
Meta keywords {$JOOMLA_META_KEYWORDS} for plugins which use the keywords as tags publish_x
Meta description {$JOOMLA_META_DESCRIPTION} If you want to show it ... publish_x
Author Full Name {$JOOMLA_AUTHOR} Use the name anywhere publish_x
Author Username {$JOOMLA_AUTHOR_USERNAME} just so you can :) publish_x
Author alias {$JOOMLA_AUTHOR_ALIAS} on request publish_x
Author Email {$JOOMLA_AUTHOR_EMAIL} Use the email anywhere publish_x
Article create date {$JOOMLA_CREATED} on request tick
Article modified date {$JOOMLA_MODIFIED} on request tick

F2C based Template Parameters

Please note. The is a reference to the unique name you give a form field when you create it. It should always be used in CAPITALS in the form2content template.

Replace < FIELDNAME > with the unique name of your F2C field.
Value Template Parameter Explanation for use LITE
F2C article ID {$F2C_ID} By request, renders the F2C id of the article publish_x
Fieldname (any type) {$< FIELDNAME >} Displays the value of the field tick
Fieldname caption {$< FIELDNAME >_CAPTION} Displays the caption value of the field tick
Fieldname title {$< FIELDNAME >_TITLE} Displays the title value of the field tick
Select List value {$< FIELDNAME >} Displays the selected value from a list (NO UTF-8) tick
Select List Display text {$< FIELDNAME >_TEXT} Displays the text of a selected value (With UTF-8) tick
Image URL absolute {$< FIELDNAME >} includes the domain name in the url of the image tick
Image URL relative {$< FIELDNAME >_PATH_RELATIVE} the path to the image relative to images/stories/ publish_x
Image thumb URL absolute {$< FIELDNAME >_THUMB_URL_ABSOLUTE} includes the domain name in the url of the thumb tick
Image thumb URL relative {$< FIELDNAME >_THUMB_URL_RELATIVE} the path to the thumb relative to images/stories/ tick
Thumbs directory absolute {$F2C_IMAGES_PATH_THUMBS_ABSOLUTE} Absolute path to the thumbs directory of the F2C article publish_x
Thumbs directory relative {$F2C_IMAGES_PATH_THUMBS_RELATIVE} Relative path (in images/stories/) to the thumbs directory publish_x
Image directory absolute {$F2C_IMAGES_PATH_ABSOLUTE} Absolute path to the image directory of the F2C Article tick
Image directory relative {$F2C_IMAGES_PATH_RELATIVE} Relative path (in images/stories/) to the image directory tick
File Upload {$< FIELDNAME >} Raw url of hyperlink to file publish_x
File name {$< FIELDNAME >_FILENAME} The name of the file publish_x
Relative file URL {$< FIELDNAME >_URL_RELATIVE} Relative path (in media/com_form2content/documents/...) to the file publish_x
Database Lookup {$< FIELDNAME >} Value of the choice made publish_x
Database Lookup Text {$< FIELDNAME >_TEXT} Text of the choice made publish_x
Custom list output {$< FIELDNAME >_CUSTOM_FORMAT} Used to create comma seperated (other) output instead of LI or UL publish_x
Geo coder field {$< FIELDNAME >_ADDRESS} = The address line.
{$< FIELDNAME >_LON} = The longitude code
{$< FIELDNAME >_LAT} = The latitude code
Translates address to longitude/latitude publish_x
Form2Content no longer provides documentation for patTemplate use. All examples use Smarty templating! Old patTemplate templates are backwards compatible in Joomla 1.5 but new features have not been added.