Nested paint layouts

Hi Support


I've read manuals and had a search on the forum but can't find any information about what I'm trying to do.



I've one paint layout [Paint layout A.] that works and displays a standard page as I would like. I then have a second paint layout [Paint layout B.] that has some logic in it to display the content of the standard page depending on the assets metadata. Both paint layouts work fine individually but what I would like to do is combine them so that I have the logic and layout working together. I could add both paint layout contents together and move the logic of paint layout B into paint layout A but I also need to apply the layout of A to other paint layouts C, D, E etc… This would mean if I wanted to make a change to my layout I would have to make the change to all my paint layouts.



I’m after a way to nest paint layouts. The ‘paint layout bodycopy’ has a 'lookup setting' but I can't seem to attach a paint layout to this. I just get the error:



Unable to Create link: Assets of Type "paint_layout_page" cannot be "NOTICE" linked to a "paint_layout_bodycopy"



How do I change a paint layout's type?



I can’t find any information on setting a paint layout's paint layout in any of the documentation. Is what I am trying to do not possible?



Or if anyone has any pointers to places in the documentation that would be a very big help.



Cheers

[quote]…


I can’t find any information on setting a paint layout's paint layout in any of the documentation. Is what I am trying to do not possible?



Or if anyone has any pointers to places in the documentation that would be a very big help.



Cheers[/quote]



I don't know what you're trying to do :slight_smile: Can you give a real world example?



Generally, you should never need to nest Paint Layouts. If you want different logic or presentation at different levels of your asset hierarchy, use Type Formats. That is, take advantage of the fact that you can have a different Type Format per asset, and use different assets for different logic and presentation. Be creative with which asset types you use: Folders, News Items, Standard Pages, Comments etc. can all be used to represent content.

Hi Daniel


Thanks for the quick reply.



Just trying to set out what I'm trying to do in words has opened up a number of posibilities that I will need to try out before taking up any more of your time.



Thanks



:slight_smile:

@baseman, same happens to me all the time! :slight_smile:

[quote]Hi Support


I've read manuals and had a search on the forum but can't find any information about what I'm trying to do.



I've one paint layout [Paint layout A.] that works and displays a standard page as I would like. I then have a second paint layout [Paint layout B.] that has some logic in it to display the content of the standard page depending on the assets metadata. Both paint layouts work fine individually but what I would like to do is combine them so that I have the logic and layout working together. I could add both paint layout contents together and move the logic of paint layout B into paint layout A but I also need to apply the layout of A to other paint layouts C, D, E etc… This would mean if I wanted to make a change to my layout I would have to make the change to all my paint layouts.



I’m after a way to nest paint layouts. The ‘paint layout bodycopy’ has a 'lookup setting' but I can't seem to attach a paint layout to this. I just get the error:



Unable to Create link: Assets of Type "paint_layout_page" cannot be "NOTICE" linked to a "paint_layout_bodycopy"



How do I change a paint layout's type?



I can’t find any information on setting a paint layout's paint layout in any of the documentation. Is what I am trying to do not possible?



Or if anyone has any pointers to places in the documentation that would be a very big help.



Cheers[/quote]



You cant nest paint layouts quite like that.



You can however share the non conditional parts by nesting or new linking them between paint layouts.



You should be able to achieve what you want but I think a more concrete example would help!