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)
Files generation with Teamsite Templating
milla
Hi all,
When you generates a page in Teamsite templating, the GUI asks you for a file name by means of the typical dialog box.
Does anyone know what I have to do in order to avoid that Teamsite show this dialog box, so that I can save the file with the name I want and not with the name given by the user?
Another question:
If the user press the preview button, It's posible to simulate into the .tpl file launched by this action a page generation instead of a preview? I ask this because in preview mode Teamsite Templating adds the prefix 'zz_test_myuser_0_' to the file name of all files generated through the .tpl file.
Thanks in advance.
Find more posts tagged with
Comments
JamJamT
In reply to your 1st question, what we do is allow the user to name the file whatever they want. Then when they submit the file for approval (kick off the workflow), our first step is to rename the DCR to our standard naming convention and email them this new name.
--Jeff
akshathp
If you want to have a name automatically assigned to your generateed HTML file, then a tt_data trigger on the DCT will help you kick off the desired workflow. In this workflow, you could specify an external task and an ipl file which has the perl code can use TeamSite CLT iwgen for generating the file in a particular location with pre-defined name. Please note, tt_data trigger will get kicked off only incase you click "close" button on your DCT and not from any other button. This way users can create a CDR, save it and click close to automatically generate it via a workflow kicking off upon closing it.
If you intended to have a name assigned automatically to your DCR then that DCR creation needs to be part of your Worklow which can assign the name to DCR too. Actually, with this workflow you could create a dummy DCR and then open it in edit mode so that it already has the name assigned to it.
About your second question, I have tried on my machine and it has always succesfully removed the temp files created with suffix of zz_preview... That should be the normal routine fo TeamSite Templating to create a temp file for preview and then remove it. So, do you really need to change this suffix?
Hope this helps.
Akshat Pramod Sharma
Interwoven Inc.