Question

Is it possible in EzPublish 5 to use a different template based on the page type you are currently on? I mean, I am 99,99% sure that this is possible, otherwise the CMS wouldn't be so useful ;) But the main question is: does anyone know how to do this?

If I go to mysite/products I would like to have the page_products.html.twig template, and if I go to mysite/retailers I would like to have the page_retailers.html.twig template, and so on, and so on.

Now this is probably fairly easy to achieve, but somehow I can't figure it out myself. Any clue anyone ?

Was it helpful?

Solution

Try to read documentation about template matching.

Simplest way is to make products and retailers folder and set different sections.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top