In this example we will create an introduction text from a larger piece of (article) text. For the introduction we will only use the first 200 characters of the main text.
1) Add a text area field to your submission form and call it: article_text
2) In your F2C main template add the template parameter for the field, between div and paragraph tags if you like.
3) In your F2C intro template add the following code. This will 'truncate' your text to the desired length and leave the last word in one piece ... thank you Smarty.
That's it ... create an article and see if it works. Remember you will need a category blog menu link to the location where you save your Joomla article.
4) Depending on your Joomla article display settings we do not want to show the intro text twice in our Joomla article! There are two ways to prevent this.
A: In the Joomla article manager global settings, set 'display intro' to HIDE. This will now be the standard for all your articles!
B: If you only want it for the articles you are creating using F2C, go to the F2C Content Type Manager. Click on the content type you are using and in the configuration go to the tab called 'Joomla advanced article parameters'.
Select HIDE for display intro text and SAVE. New articles will now override possible global settings and not show the intro text!