Display Content Holder based on Web Page name
There may be instances where you want to display a Content Holder on a specific Web Page. This...
There may be instances where you want to display a Content Holder on a specific Web Page. This can easily be done by using the Web Page name and the Liquid IF statement.
In our example let's assume you have the following Content Holders called "Call To Action" already set up with the custom content you want to display on the Web Page.
Next you need to put the Content Holder tags within a Liquid Logic {% IF -%} statement on a Page Template like this example below.
{% if 'bb_pagename' == "Page Name" -%}
{bb_contentholder source="Call To Action"}
{% endif -%}When the Web Page displays in your browser if the page name is "Page Name" the Content Holder will display.
Originally sourced from the BlueberryCMS knowledge base.
Was this article helpful?