You can hide content if the current page has a specific title, for example: Code Block |
---|
{builder-hide:title=My Homepage}
This is not my home page!
{builder-hide}
|
This can come in handy if you are using templates to generate content and want to hide something based on the page title. Alternatively, you might want a specific page title to be used whenever a certain template is used, for example: Code Block |
---|
{builder-hide:title=Meeting}
(!) Please rename this page to "Meeting" to aid consistency throughout this site.
{builder-hide}
|
Another use is to add labels to pages based on their title: Code Block |
---|
{builder-hide:title=Home}{add-label:not-home-page}{builder-hide}
|
Simply add that to the Header panel in theme config and any page that is not called "Home" will get a label of "not-home-page" added to it thanks to the add-label macro. This is useful because it allows you to search all pages that aren't a home page within the site!
|