Database pages
The page shortcodes are available for pages created in the Pages module. They are usually used inside templates from webroot/templates.
The Pages listing includes default fields for new language versions: page type, template, name, breadcrumb name, description and H1. The Insert defaults button in the language-version form applies the saved pattern. Text fields may use {name}, {city} or {miasto}, replaced with the current page name.
| Shortcode | Description |
|---|---|
__LEFT__page:id__RIGHT__ | Page translation ID. |
__LEFT__page:item_id__RIGHT__ | Base page item ID. |
__LEFT__page:panel_title__RIGHT__ | Working title visible in the admin panel. |
__LEFT__page:name__RIGHT__ | Public page name, used for title fallback. |
__LEFT__page:breadcrumb_name__RIGHT__ | Name used in breadcrumbs. |
__LEFT__page:h1__RIGHT__ | Page H1. Falls back to the page name when empty. |
__LEFT__page:url__RIGHT__ | Public page URL. |
__LEFT__page:image__RIGHT__ | SEO/OG image or the default SEO image. |
__LEFT__page:description__RIGHT__ | Meta description. |
__LEFT__page:body__RIGHT__ | Escaped page body. |
__LEFT__page:body:raw__RIGHT__ | Raw HTML page body. This is the main content placeholder. |
Page template example
<section class="page-content">
<h1>__LEFT__page:h1__RIGHT__</h1>
__LEFT__page:if:image__RIGHT__
<img src="__LEFT__page:image__RIGHT__" alt="__LEFT__page:h1__RIGHT__">
__LEFT__/page:if:image__RIGHT__
<div class="content">__LEFT__page:body:raw__RIGHT__</div>
</section>