title static-pages Breadcrumb and dynamic pages #871
-
Hello, In template i use {{ this.page.title}} and it works good in all pages. 90% pages used in static-pages module. But if i go to dynamic page title is not displayed and it is logical, how to make a condition if the module static-pages used Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you have the {% if staticPage.pageObject %}
Static page loaded
{% else %}
Dynamic page loaded
{% endif %} The |
Beta Was this translation helpful? Give feedback.
If you have the
staticPage
component in the layout, you can use the following condition to detect if a static page is being viewed:The
$pageObject
property of thestaticPage
component will benull
if no static page could be found for the following URL, or if you are using a normal CMS page for that URL.