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)
<directory dir-regex> success?
gsumers22texas
does anybody have experience getting the directory dir-regex subelement within templating.cfg to control where generated files locations are defaulted to? we have tried using same regex setting that works for the preview-dir attribute of the branch element for previewing, but without any luck-
sample <category> below:
<category name="DCFS_ICWA">
<locations>
<branch vpath-regex=".*" />
</locations>
<data-type name="ICWAPage" dcr-type="iwov">
<presentation>
<template name="icwa.tpl" extension="htm">
<locations>
<branch vpath-regex=".*" preview-dir="/DCFS">
<directory dir-regex="/DCFS" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
thanks in advance for all responses
Find more posts tagged with
Comments
Adam Stoller
I believe that the directory dir-regex is used for *validation* of the path of the generated file - but apparently *not* as a starting directory for the prompt when generating a file.
To verify this - with the dir-regex you have in place - can you generate a file to the top-level of the workarea?
A feature request (#22856) is already on file for this - if you'd like to have your company added to the list of interested customers, please contact Interwoven Support.
--fish
(Interwoven, Curriculum Development)
gsumers22texas
the action in the GUI confirms what you're saying-
with that dir-regex setting, we get a popup message: "Not a valid directory. For icwa.tpl valid directories are /DCFS"
however, when we nav to the "DCFS" directory, it gives same message- is the leading "/" in the dir-regex the problem there?
output.pdf
gsumers22texas
the leading "/" was the issue- taking it out and just putting directory name makes <directory dir-regex> work as designed- I think the TST developer documentation is easily misinterpreted about this element?
thanks for help