About Form2Content Forms & Fields

Form2Content forms are used to collect data to generate Joomla articles. Each content type has it's own form. Each form can have as many fields as you like. You can access the Fields Manager by clicking on the  in the Content Type Manager. Please read about article templating on how to get the data from the forms into your Joomla article.

Date select field

Adding dates for events, birthdays or any other use has never been easier. Using Smarty modifiers you can easily translate the date to any (written) format.

Image gallery

Date picker field options

Template parameters available

{$< FIELDNAME >} = The selected date formatted according to the date setting in the Global Component Configuration
{$< FIELDNAME >_RAW} = The selected date formatted as Unix time stamp (can be formatted with Smarty template function)

*(where < FIELDNAME > = the unique field name filled out in the settings)

Article template example

Assuming the field name is "date_from" you can add the following

{php}setlocale(LC_ALL, 'en_GB');{/php}
{$DATE_FROM_RAW|date_format:"%A %e %B %Y"}

This will output (depending on the date selected): thursday 28 september 2017. The php setlocale is necesary to format the output. Different language options are possible (http://php.net/manual/en/function.setlocale.php).

More Smarty documentation: https://www.smarty.net/docsv2/en/language.modifier.date.format.tpl 

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