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)
create directory for new DCR
System
When the user is in a directory within a workarea and they select new DCR, is there a way to create the corresponding directory within the templatedata/category/type/data structure? I don't want users navigating into templatedata if I can avoid it, and there doesn't seem to be a "New Directory" in the save DCR dialog. I know I could do a custom menu item, but has somebody already done this (preferably without bringing up a new browser window)?
Find more posts tagged with
Comments
Adam Stoller
Why would the templatedata/category/type/data structure *not* already be present in that workarea?
If you configure a branch for templating, all workareas on that branch should be configured the same (in that regard) - and this should not be an issue. When they use File > New Data Record - they'll get prompted for one of the categories available in that branch, and then one of the data-types available for that category.
Maybe I'm just not understanding the question.
--fish
(Interwoven Senior Technical Consultant)
gzevin
Adam,
I think what john means is that as you know it is common to create subdirectories in data directory. Usually we do it separately, so you could navigate down as you save DCR.
And, obviously, there is no New Directory button... alas...
regards
Adam Stoller
Ah - well, I think the generally recommended practice is to create the DCR through a workflow, such that that you can (a) set up the directories beforehand, and (b) control the naming of the DCR - to some extent.
With 5.5.2, using FormAPI - you have more control over the naming of the DCR - so you don't have to create an "empty" DCR first within the workflow - as long as you can imbed the logic of how to name / where to save the DCR within the FormAPI code.
There's an example of the naming part within the templating examples "userscript" section - the rest is either an exercise for you, or perhaps some kind[er] soul will contribute code to the forum for it (I don't have the time right now - sorry)
--fish
(Interwoven Senior Technical Consultant)