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)
saving generated html to a specified directory
System
Does anyone know if it's possible to set the "initial-dir" on the generate button, so the html from a particular DCT would always save to a specified directory?
Thanks in advance!
Find more posts tagged with
Comments
sbaumann
hello,
you can set the initial directory for saving your generated html-files by using the <directory>-element in templating.cfg
have a look to templating-manual (tst.550.dev.pdf on page 103).
hope, it is the answer you looking for.
steve
Migrateduser
Steve-
Yes, that was what I was looking for, thanks for your help. Now, do you know if it's possible to only allow saving to that directory, so the user can't browse out of it and save the html to the wrong dir?
Thanks again,
maureen
sbaumann
hi maureen,
i think, it's not possible to restrict the output-directory only to the folder you registered in templating.cfg.
please, let me know, if you find a way to do this ...
bye, steve
tvaughan
I don't know about TST 5.5, but in 5.0 I think you can set the attribute "dir-regex" of the "directory" tag to be a regular expression that limits where HTML is saved to.
Thus, if you only want news stories saved in the directory "branch/WORKAREA/joe_shmoe/content/news", you'd have a regex like:
"/content/news/$"
I think the end-of-line limiter ($) will not allow news stories to be saved in any subdirectory of news, but you'd have to play around with it to be sure.
Tom
iwovGraduate
The dir-regex prevents users from saving the generated file in any arbitrary location, but there is no way that I know of(upto v 5.0.1) to default the 'File Browser' window to a particular directory. It always points to the root of workarea. If you find out let me know. Consider filing a feature request ?