How to Insert Dynamic Content?

You can insert content from database using special tags or short codes. You can insert user information, date, Joomla article, category, tag, site information, file information or any data from the database.

Also Read: How to Format Dynamic Content?

1. Current User

A. Direct Fields

{NAME}, {EMAIL}, {USERNAME}

B. Core Fields

Information is retrieved from the Joomla users database table.

{USER name}, {USER email}, {USER usergroups}

Other fields available: registerdate, registertime, lastvisitdate, lastvisittime, usergroups

C. Custom Fields

Information is retrieved from the Joomla users custom fields.

{USER 12}, where 12 is the id of the custom field.

D. Profile Fields

Information is retrieved from user profile Plugin.

{PROFILE city}, {PROFILE address1}

2. Current Date

Following short codes are available.

{DATE}, {YEAR}, {MONTH}, {DAY}, {WEEK}

3. Site (Global) Information

You can insert your Joomla site information from the Global Configuration. For example,

{SITE sitename}, {SITE mailfrom}, {SITE fromname}, {SITE MetaDesc}

4. Joomla Article

Enter the Id of the article for which you want to insert dynamic content.

A. Core Fields

Information is retrieved from the Joomla articles.

{JA title}, {JA introtext}, {JA fulltext}, {JA image}, {JA url}

Other fields available: image, image_intro, image_fulltext, url

B. Custom Fields

Information is retrieved from the Joomla articles custom fields.

Example: {JA 8}, where 8 is the Id of the custom field.

5. Joomla Category

Information is retrieved from the Joomla Categories.

Example: {JC title}, {JC image}

Other fields available: image, url

6. Joomla Tag

Information is retrieved from the Joomla Tags.

Example: {JT title}, {JT image}

Other fields available: image, image_intro, image_fulltext, url

7. Database Table

You can insert any data directly from the database table. The table should have the "id" column.

Example: {DB content 17 title}

This will insert title from the #__content table for the record with Id = 7.

8. Current Page

You can insert information about the current page. For example,

{PAGE id}, {PAGE title}

9. File Information

Enter the file path relative to Joomla installation folder. For example, images/filename.png

Then, you can insert the file information - {FILE filesize}, {FILE ext}, {FILE basename}

10. General Data

If existing data is already available for use, use FIELD prefix. For example: