Template set publishing
Author: damon_s
Publication Date: 2/27/2019 20:49
I have two template sets at the moment, html and js. Is there a way to pick and choose where this where the template set is activated in my project structure? Let's say I only want the js pages to publish from a specific node and not every page in the project as it currently is.
-
Author: mbergmann - 2/28/2019 0:49
Hi Damon,
there are multiple ways to achieve this, but I understand you‘d prefer some kind of setting on page or folder level.
In this case you can suppress the generation of a page by using
$CMS_SET(#global.stopGenerate, true)$
somewhere in the template. That call should of course be wrapped in some kind of condition, e.g. based on the combination of templateset and metadata/sitestore variables.
One small disadvantage is that this only suppresses the creation of the files but not their folders, so there will be some empty folders in the end.
Michael
0 -
Author: damon_s - 2/28/2019 17:52
Thank you Michael. I implemented your solution and it worked perfectly.
0
Please sign in to leave a comment.
Comments
2 comments