-
Aloha, friends (apologies if this is a super noob question, I looked all over for an answer and couldn't come up with one) I'm using the default page title format in the site settings: I've created a blog and, of course, have blog pages. The pages are in a list. I've found that I can get the blog name with What would be the correct method for "overriding" the default page title to make a new one which includes the blog name for these pages? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#page_title {% assign page_title = "PageTitle" %}
{% assign blog_name = Model.ContentItem | container | display_text %}
{% page_title page_title, position: "after", separator: " - " %}
{% page_title blog_name, position: "after", separator: " - " %}
{% page_title Site.SiteName, position: "after", separator: " - " %} This Liquid "Layout Tag" is additive to the current page title set in your layout.liquid file : <title>{% page_title Site.SiteName, position: "before", separator: " - " %}</title> See RenderTitleSegmentTag.cs for understanding how it works : Alternatively, I think you can also do : {% page_title "something" %} Which should override the entire title if I remember correctly. |
Beta Was this translation helpful? Give feedback.
https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#page_title
This Liquid "Layout Tag" is additive to the current page title set in your layout.liquid file :
See RenderTitleSegmentTag.cs for understanding how it works :
OrchardCore/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/…