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)
dynamically generate initial-dir
Grundy
I am writing some DCT code which I intend for reuse across several branches. The DCT will include a <browser> element, and I want the path for its initial-dir attribute to be generated dynamically according to the current branch path. What's the easiest way to do this?
I'm working in TeamSite 5.0.2 and so do not have FormAPI available.
Find more posts tagged with
Comments
Adam Stoller
I think you'd have to use an inline script to insert the browser element into the DCT. The inline script would then have to be cognizant of from what branch (path in general) it was called.
The last part can be done by virtue of environment variables set at the time that the inline script is called (at least in 5.5.2 on Windows 2000) - such as: IW_DCT, and IW_WORKAREA
So you put the inline script in a centralized location and run it from each of your DCTs and perform logic based on one of the above environment variables for determining what value you want to provide the browser element.
i'm pretty sure it will work (I just did limited testing)
--fish
(Interwoven, Curriculum Development)