You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above include would result in a section being included with title: Pagename Section
2. {{page>[namespace1:pagename:#section]&nofooter&showpagetitle&separator}}
where separator can be configured in the plugin settings
The above include would result in a section being included with title:
Pagename:Section
The text was updated successfully, but these errors were encountered:
I totally agree that for includes of just a single section it would be beneficial to display more than just the section title in particular if this is combined with a namespace- or tag-based include where the section title will always be the same but the page won't be the same. I would prefer to make this more flexible, though. Instead of having flags that trigger two specific variants, I suggest to add a single flag with a value that is a template for the title. For example, you could then use {{page>[namespace1:pagename:#section]&nofooter&header=@PAGETITLE@: @SECTIONTITLE@}}. The only limitation would be that you cannot use & or }} in the text of the title. I suggest to use the same replacement patterns as in namespace templates, excluding the user- and date-based patterns and add @PAGETITLE@, @SECTIONTITLE@ and @TITLE@, the latter being the default value that corresponds to the current behavior, i.e., the page title for includes of the whole page and the section title for includes of a single section. I am open to suggestions how to name these new replacements and also the flag, my current suggestion would be to repurpose the existing header flag and simply parse its value when given. However, this might be difficult to represent in the admin interface, a new headerformat flag and configuration option could be an option, too.
current example:
{{page>[namespace1:pagetitle:#section]&nofooter}}
The above include would result in a section being included with title:
Section
Feature request/enhancement:
The above include would result in a section being included with title:
Pagename Section
2. {{page>[namespace1:pagename:#section]&nofooter&showpagetitle&separator}}
where separator can be configured in the plugin settings
The above include would result in a section being included with title:
Pagename:Section
The text was updated successfully, but these errors were encountered: