Forum Discussion

jpierlot's avatar
7 years ago

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

 

 

3 Replies

  • jpierlot

    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

  • jpierlot's avatar
    jpierlot
    Guide
    7 years ago

    Thanks for your reply.

    I tried your solution. The first part is ok. But when i tried to change the layout i had this message :

    'There are no additional layouts that can be applied to any page'

    Does it mean something to you ?

    Regards.

  • jpierlot's avatar
    jpierlot
    Guide
    7 years ago

    Find the solution. I didn't respect the naming of layouts, that's why it didn't work.

    Thanks nehaSharma !