Category Articles

Use of Intro & Main Template

Print

Joomla used to have two parts to every article, the Intro Text and the Main Text. From Joomla! 1.5 onwards these two parts have been combined into one Text Area (with WYSIWYG editor depending on your settings).

Inserting the READ MORE line will split your article into the Intro Text and Main Text. If the Read More is used, the Read More link will automaticaly show in Blog Layout views of your articles. Depending on your article parameter settings the Intro Text will or won't be shown when you view the article as a whole. This is all basic Joomla! and has so far nothing to do with Form2Content.

In the Joomla! database there are still two fields to every article, one for the intro text and one for the main text. If any text (html) is present in the main text field, Joomla! will render the Read More link in Blog Layouts.

Form2Content Templates

For Form2Content to be as simple and flexible as possible we have provided the use of two templates per article. The Intro Template for the Intro Text and the Main Template for the Main Text.

F2C without Main Template

If the Main Template is not used, there will be no Read More link in the Blog Layout since there is no text (html) in the main text field of the article.

F2C with Empty Main Template

It is also possible to include a Main Template but not place any code between the template tags. Again no content will be rendered into the Main Text field of the article so no Read More link will show.

F2C with Conditional Main Template

It is very linkely that at some point you want to create a Content Type where the user has the option to add more information which will be visible after a Read More.

Two or more fields with conditional statement

The easiest is to create (at least) two Text Areas (with or without editor). Name one for instance Intro Text, the other Read More Text.

 

Royalty Free Images
Verschillende betaalmethoden

Open Source Design

Ceresstraat 24
4811CC Breda
The Netherlands
+31(0)765152174