Using a Nested div or a keyword I can embed a Content Template within a Paint Layout. However when I view an asset that has the Paint Layout applied, the Content Template doesn’t display - the generated HTML is blank.
If I embed the Content Template directly into the asset eg. Standard Page, it displays perfectly.
Is this an expected behaviour or am I missing something?
Content Templates aren’t actually supported on Paint Layouts and we’ve actually disabled that possibility in the next upcoming release to prevent confusion. Turns out this would require a fair bit more work to get working so we have decided to remove the template applying functionality for now until we have time to add support for it.
As an alternative you could try and nest in a Standard Page into the Paint Layout and apply the template to the SP.
I tried the alternative you suggested (nest Content Template -> Standard Page and then nest Standard Page -> Paint Layout) but this had the same result as before (displays blank).
As a workaround I’ve been able to successfully nest the Content Template into a customisable DIV within a Design Customisation but, due to our design, this has presented some further challenges in terms of presentation.
It certainly would be useful to have support for Content Templates within Paint Layouts moving forward.
I quite like the concept of Content Templates and have been using them to build a few things, like a Google Map Template to embed a map, and a Website Feedback Template to capture user ratings and feedback.
It would just be good to be able to use these freely within the content of a single page, which Content Templates already allow, or across multiple pages / websites by using them within a Paint Layout. Yes, I could just build it out into a Paint Layout but it’s sort of duplication of effort and seems unnecessary when almost all other assets can be embedded within a Paint Layout quite easily. Just my two cents.