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)
generating DCR to a specified directory
Ramkumar
Hi All
I am unable to specify a required output directory while generating a DCR.My files are stored under htdocs/sars directory in the workarea.My requirement is while saving the generated page the file dialog window should automatically root to sars,instead of htdocs.
I tried the <directory dir-regex="/htdocs/sars" /> within the <locations> tag in templating.cfg file but for some reason it's not working.
please help me.
Thanks in advance
Find more posts tagged with
Comments
Johnny
I believe the dir-regex will only valid the path specified to where you save your generated file.
I dont think it provides a docroot for you as a regex can mean many things.
It would be a good idea though..... feature request guys??
John Cuiuli
Consultant
Sydney, Australia
Adam Stoller
I believe this is on-file already as 10987
need a default save-to location for PT's
Please contact Support to register your interest in this feature.
--fish
(Interwoven Senior Technical Consultant)
Ramkumar
Hi Fish
I am afraid the article 10987 dosn' t exists/missing i tried searching on that article id,i get a message that file is missing .
Adam Stoller
It is not a KB article or tech note - it is a feature request id. If you are interested in registering interest in this functionality being added to the product, please contact Interwoven Support and ask them to open a case for your company to be associated with Feature Request # 10987
--fish
(Interwoven Senior Technical Consultant)
Migrateduser
You can use FormAPI. Here we let the user select the directory from a drop-down list. Then we take a field in the DCR such as title and remove the special characters, substring, etc. to create the file name which is then set as the DCR name. It's a bit of code. But if you don't want to go that far, you could add a form handler on the onSaveNameSpecified event that validates the name against a regex, throws an alert and returns false if it doesn't match (which would disallow save).
SP5_EP1_1470_DynamicAttachments.zip
Migrateduser
I have attached some code for defaulting DCR name/directory based on selections/values in the DCR. There is some sample code for validating a filename at
http://devnet.interwoven.com/forums/cgi-bin/showflat.pl?Cat=&Board=PRODUCTS_TEMPLATING&Number=5715&page=&view=&sb=&o=&vc=1