Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
IWPageGeneration.UNsetPresentationTemplate???
dazzlad
Hi,
I have the following FormAPI code in my DCT to force use of a particular presentation template.
var x = IWPageGeneration.getValidPresentationTemplates();
for(var a=0; a<x.length; a++) {
if(x
.getName() == 'product.tpl') {
IWPageGeneration.setPresentationTemplate(x
);
}
}
This called when the onGenerate event is fired.
If a user Preview's after Generating I'd like them to be able to choose from all available presentation templates.
Does anyone know of a way to implement the functionality that the non-existent function IWPageGeneration.UNsetPresentationTemplate implies?
I have tried setPresentationTemplate() using null, 0, no parameters and so on, but to no avail.
Thanks.
Darren.
Find more posts tagged with
Comments
psh24
Having the same problem. Darren, did you solve the problem?