Insert Content
With the first method, a pre-rendered dummy text will be placed directly into your article, based on your Content Type and Options selection.
You can then save the article and that dummy content is actually in the article text.
The editor button will generate the appropriate content based on your specified Content Type and Options in the editor button popup.
Insert Tag
In alternative, you can also choose to place a special dynamic tag into your content: {dummy}
. You can place this tag anywhere you can enter content in Joomla.
With this method, Dummy Content will then replace that tag in the frontend with a dynamically generated dummy text.
The editor button will automatically generate the appropriate tag based on your specified Content Type and Options in the editor button popup.
But you are also free to enter the tag manually. Here is a quick rundown on how the tag syntax works:
Default Type
The simple {dummy}
tag will place the default content type based on the Dummy Content default settings.
Default Number of a Type
To place a specific content type while keeping its default settings, you can use a {dummy [content_type]}
tag.
For example {dummy paragraphs}
will place the amount of paragraphs specified in the Dummy Content default settings.
You can also use a short syntax with just the letter initial of a certain type – for example for paragraphs you can use {dummy p}
.
Specific Number of a Type
You can overrule any setting inside the tag to make it output exactly what you want: any number of paragraphs, sentences, words, lists, images, etc.
This is done with a attribute="value"
syntax – which you might recognise from how html works.
For example, to specify how many number of paragraphs you want to output, you can do so by using {dummy paragraphs="5"}
.
The same applies to all other content types. See the Content Types section in the documentation for all the details on each content type and on how the respective tag works.
More Options
Dummy Content offers additional options to customize the generated content, such as Word Lists and Diacritical Marks.
If you want to add extra attributes to the tag, but you want to use the default number of a type, you will need to place the content type in its own attribute too. This is done with a type="..."
syntax.
For example, {dummy type="paragraphs" wordlist="greek"}
.
Changelog for Dummy Content 7
- Adds a ‘default’ option in the editor button popup
- Adds icons to the editor button popup to make it pretty 🙂
- Adds ability to set a random font when using the PickaDummy image service PRO
- Improves layout of editor button popup
- Improves the way the tag syntax is generated in the editor button
- Makes it possible to place plugin tag attribute values in single quotes instead of double quotes
- Now uses default value from setting instead of 1 when only setting the type in the tag (breaking change!)
- Fixes incorrect list of image services in select list in editor button popup PRO
Read the Changelog for Dummy Content 7.0 for the list of improvements and fixes that have been made in the new release.
There are a lot more cool features and options to explore in Dummy Content. Head over to the full Documentation for a complete overview and to find more treasures.