Using multiple layout TBBs in a modular template makes multiple
Output items in the
Package, which I understand act as a stack of
text/html items named
Is it a bad idea to use this modular templating feature to manage various presentations for a given modular template? I suspect the TBB that chooses which Output to keep would be rather "hackish."
In other words, is there a way to choose a layout TBB at publish time?
Alternatively, using a single layout TBB, we can use conditional logic to show/hide certain markup.
<!-- TemplateBeginIf cond="somecondition" --> Do something... <!-- TemplateEndIf -->
The use case would be minimizing localization of templates across websites, devices, or other channels. We do this easily with fields saved in config components or publication metadata--I'm trying to find the equivalent for markup managed in the CMS (edit: without localizing templates to be clear).