Article

Use the {article} Smart Tags to retrieve information about a Joomla article. This Smart Tag can return the value of any property from the Joomla Article object, including custom fields, as long as you know the property's name. It can access details from the current browsing article and any article by providing the article's ID using the --id property.

Syntax:

{article.PROPERTY [--id=ARTICLE_ID]}

Replace PROPERTY with the name of the property from the article's object. To pull the property from a specific article, provide the --id option and replace ARTICLE_ID with the article's ID. Omit the --id option to use the currently browsing article.

Below is a list of this category's most popular Smart Tags.

{article.id}

Returns the ID of the article.

{article.title}

Returns the title of the article.

{article.introtext}

Returns the intro of the article.

{article.fulltext}

Returns the complete text of the article.

{article.images.image_intro}

Returns the intro image of the article

{article.images.image_fulltext}

Returns the full text image of the article

{article.alias}

Returns the alias of the article.

{article.link}

Returns the SEF URL of the article.

{article.user}

Return information about the article's author, such as the name, email address, or even a custom field. This Smart Tag can return the value of any property from the Joomla User object as long as you know the property's name. This property mimics the behavior of the User Smart Tag

For instance, to retrieve the author's ID, use:

{article.user.id}

To return the author's name, use the following:

{article.user.name}

To retrieve an author's custom field value, use:

{article.user.field.FIELDNAME}

{article.field}

Returns the value of an article custom field and any property from the field object, such as the title or the id.

Syntax:

{article.field.NAME.[PROPERTY] [--id=ARTICLE_ID]}

Replace NAME with the name of the custom field. To pull the custom field value from a specific article, provide the --id option and replace ARTICLE_ID with the article's ID. Omit the --id option to use the currently browsing article.

For instance, let's say you have a custom field named "favoriteColor". To return its prepared value from the article with ID 150, use:

{article.field.favoriteColor --id=150}

To return the field's raw value, use:

{article.field.favoriteColor.rawvalue --id=150}

To return the field's ID, use:

{article.field.favoriteColor.id --id=150}

The same goes for the Subform field. Let's say you have a subform field named "customers" which consists of 2 fields, "name" and "age".

The following shortcode will return all subform rows in a bullet list.

{article.field.customers}

To display all the values of a specific row, you need to access the rawvalue property of the field and provide the row index:

{article.field.customers.rawvalue.0}

The display the value of a specific field from a specific row, access the rawvalue property of the field, and provide the row index and the field's name.

{article.field.customers.rawvalue.0.age}
Last updated on May 7th 2025 09:05