To render the entire text from the article you can use the
You can also decide to only show the
[introtext] (the text part above the readmore bar, if present) or the
[fulltext] (the text part below the readmore bar, if present).
Additionally, with any text data tag - like
[metadesc], and even custom fields such as
editor, you have the following features at your disposal:
You can limit any text data tag to only show a certain amount of characters. HTML tags and images are not counted, only the text itself.
For example, to show the first 100 characters of the entire text, simply use:
To limit the text to a number of words, you can do:
You can limit the text to a number of paragraphs. This will break off the text after the second
</p> tag it finds in the html code:
If you decide to limit the text to a certain amount of characters/words, you can append
... dots to the end of the text.
You can do so with an
add-ellipsis attribute, giving it a value of
false depending on your preference:
[text limit="100" add-ellipsis="true"]
If you want to remove the HTML tags from the text, you can do:
[text characters="100" strip="true"]
You might want to keep the HTML tags and styling of the content, but remove the images. You can do that with:
When including the text of multiple articles inside another article, you might want to shift the heading tags of the placed articles to a lower level.
You can offset the level of the headings in text data tags by using an
offset_headings attribute. For instance, to convert H1 to H3, H2 to H4 and so on, set the attribute to 2:
Headings will be a minimum of 1 and a maximum of 6. So if you have headings going up to H6, then with
offset_headings="1" both H5 and H6 will become H6.
In Joomla you can split the text of an article into multiple pages using page breaks.
You can output these different pages separately via the
For instance, to only output the 3rd page of an article, you can do:
Or use the given title for that page, like:
[text page="My Third Page"]