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.

Single line text (text box) field

One of the field types used most is the single line text, also known as a 'text box'. It can be used to submit anything from name, number, email to YouTube video ID. It is recommended to use the hyperlink field type for URL submission as it has http prefix check.

Image gallery

Single line text field options

Template parameters available

{$< FIELDNAME >} = html safe
{$< FIELDNAME >_RAW } = raw output

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

Article template example

Let's say you would like to add the name of an organisation to your content. You can add a single line text field with the unique name 'organisation'. The  Smarty template code to render the name in your template could look like this.

<h2 class="header">{$ORGANISATION}</h2>

The Smarty IF statement has been added so that if there is no organisation name submitted nothing will show in the article (i.e. no empty h2 tag).

Single line text (text box) options

The above images show the possible settings including length of the textbox (in the form), maximum length (number of characters) of the text.

Attribute examples

placeholder="Please fill in the name of your organisation"

Field validation

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