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)
CLT to get template name
lcarr
TeamSite 5.5.2 Win2K
Is there a CLT to get the template name associated with a data category & type. I am trying to generate HTML from a workflow in an external task and need the template name for the call to iwgen
Also, is there a way to get the dir-regex associated with the template?
Since this information is in templating.cfg, I'm hoping there is a way to extract the info.
Find more posts tagged with
Comments
Adam Stoller
I'm not entirely sure I understand what you're trying to do, but ...
You can use basic XML parsing techniques (e.g. XML:
arser and/or probably XPATH constructs) to extract information out of the templating.cfg file. There are no CLTs shipped with the product to do this specifically.
--fish
(Interwoven Senior Technical Consultant)
Migrateduser
Bear in mind that a data type may have more than one presentation template, or none at all.
If you want to write code to generate files in a workflow, you will need to be able to answer the following questions:
Which presentation template(s) should be used?
Where do you want the generated files to go?
How do you want the generated file to be named?
What should happen if a generated file already exists?
Do you need to set any EAs on the generated files?
Brinko Kobrin
Interwoven Staff Engineer
Bowker
We solved this issue by creating a menu item to create a blank HTML document and create an empty DCR in the correct place (type/subtype) and put the correct extended attributes on the files. Then when we need to generate it, we just regenerate it. That way the user never really knows about TemplateData.
The other thing we do is in the workflow we added an external task that looks through all the files associated with the job and if there are any files that are built using DCRs we attach the associated DCRs too. That way our html and dcrs are always in sync.