I've got a product section on a website where individual product entries are categorised. On the section landing page all the products are listed organised by category. On the individual category pages only the product entries relevant to that category are shown.
The issue I’m having is that for the category landing page I want to pull in the Section landing page content. However when I try the following:
{% set entry = craft.entries.section(‘productsAndMarketsLandingPage’).first() %}
{entry}
returns empty. Any thoughts why this isn’t being pulled into this particular page/template? I can access it just fine from within the
The section, template and URL structure is as follows:
Section landing page
url: /products-and-markets
template: /products-and-markets/index
section: productsAndMarketsLandingPage
Category landing page
url: /products-and-markets/{slug}
template: /products-and-markets/_category
section: productsAndMarkets
Product entry page
url: /products-and-markets/{slug}
template: /products-and-markets/_entry
section: productsAndMarkets
Cheers in advance,
Cole