Add differents layout for the same page
Hello there,
I have a community structure in which i call 3 times the CategoryPage Layout.
The problem is that I want to have some components on the first one (that i use as the homepage), but i want others components on the 2 others CategoryPage.
Can i use condition on the CategoryPage layout ? If yes, how can i scope the different page ? (having ids ??)
Thanks for reading me, and for your help.
Sylvain
You can create 3 different Custom Category Pages in the Studio (Studio > Page > New) as CategoryPage.Cat1, CategoryPage.Cat2 and so on.
Then, you can map these to the respective Categories in the Admin section by selecting the respective category you wish to change the Layout for (Choose > Content > Custom Pages > Page Layout > Category Page).
You can refer to the following article:
https://community.lithium.com/t5/Developer-Knowledge-Base/Creating-a-custom-page-in-Studio/ta-p/6254