Page

Here, you will find a list of Smart Tags containing information about the page being browsed.

{url}

It returns the complete URL of the page, including the query string.

Example:

https://www.site.com/blog/?category=123

{url.path}

It returns the page URL without the query string. Example:

Example:

https://www.site.com/blog/

{url.encoded}

It returns the complete URL of the page, including the query string, but encoded. For instance, if the current URL is https://www.site.com/blog/?category=123 the Smart Tag will return https%3A%2F%2Fwww.site.com%2Fblog%2F%3Fcategory%3D123. This is useful when you want to pass the URL as a parameter in another URL.

{page.title}

It returns the title of the page. If the page is behind a Menu Item, its Browser Page Title will be returned if not empty; otherwise, it falls back to the title as seen in the browser tab. Note that this Smart Tag may contain the site's name depending on whether or not the "Global Configuration > Site > SEO > Site Name in Page Titles" option is turned on.

If you want to display the title of a Joomla Article, use the {article.title} Smart Tag instead. Similarly, you can use the  {menu.item} Smart Tag to fetch the Menu Item's title.

{page.desc}

It returns the page’s meta description. If the page is a Joomla Article with a meta description set, it will be returned. Otherwise, it falls back to the menu item’s page meta description.

{page.lang}

It returns the language code of the page. For example, if the page’s language is English or Greek, expect en-gb and el-GR as the returned value, respectively.

{page.langurl}

It returns the first part of the language code of the page. For example, if the page’s language is English or Greek, expect en and el as the returned value, respectively.

{page.generator}

Returns the value of the generator meta tag.

{page.browsertitle}

Returns the menu item’s Browser Page Title option even if it is empty.

{querystring.KEY}

Returns the value of a URL query string parameter as found in the $_GET superglobal array. For example, if the page URL is http://example.com/page.php?key1=red&key2=blue, the {querystring.key2} Smart Tag will return blue.

{post.KEY}

Returns the value of a post data as found in the $_POST superglobal array. For example, if you submit a form that consists of the “email” and “name” input fields, you can use {post.email} and {post.name} Smart Tags in the submitted URL to retrieve the value of any form input.

Last updated on May 7th 2025 09:05