I was thinking about it. The problem is that I won't be able to switch between layouts afterwards, because it's not possible to change Doc. Type after the page has been created.
Hi Ivan, thought this was worth a mention, it may be useful (but certainly not best practice!) to hack (ahem) customise the back office, I've used the uComponents Render Macro to inject custom JS into the page via a datatype property, and then used these helper methods:
Hide tabs programmatically using API
Hi guys.
How do I hide/show tabs using API?
I need dynamically show/hide tabs based on template alias selected.
So for example, when alias = "template1", then the page should be loaded with 1 tab on it.When alias = "template2", then the page should have 2 tabs.
Hi Ivan,
Wouldn't it be simpler to have different Document Types to handle the tabs/properties for those different templates?
Cheers, Lee.
Hi Lee.
I was thinking about it. The problem is that I won't be able to switch between layouts afterwards, because it's not possible to change Doc. Type after the page has been created.
Hi Ivan, thought this was worth a mention, it may be useful (but certainly not best practice!) to hack (ahem) customise the back office, I've used the uComponents Render Macro to inject custom JS into the page via a datatype property, and then used these helper methods:
HTH, Hendy
Hi Hendy.
JavaScript would be just fine. Thanks for the solution, I'll give it a try.
is working on a reply...