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:
You can also limit based on only the letters, without counting spaces:
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 characters="100" add-ellipsis="true"]
If you want to remove the HTML tags from the text, you can do:
[text characters="100" html="false"]
You might want to keep the HTML tags and styling of the content, but remove the images. You can do that with:
If you want to add slashes to single and double quotes, you can do:
To only escape single quotes:
And to only escape double quotes:
If you want to add convert special characters to html entities, you can do:
For any text data tag, you can convert the casing and capitalization of the text in various ways, by using the
| ||this is a string|
| ||this is a String|
| ||This Is A String|
| ||THIS IS A STRING|
| ||This is a string|
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.
You can even search and replace inside any text data tag, by using the
For example, this is the syntax to replace
dogs inside the
[text] data tag:
If you need to do multiple replacements, you can separate them with a comma:
This can come especially useful to make custom replacements when using the External Database feature.
You can also decide to extract only part of the text from an article by specifying the
id of the HTML element that you want to output.
This will only output the
div element with id "my-div" from your
This works with any HTML elements, such as paragraphs, divs, tables, etc.
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"]