Home
TeamSite
Remove the generate button from dct
tsrookie
Gidday all,
We have a couple of dcts where we would like to remove the generate button so that the process of generating can be initiated by the user clicking the finish button. TS 6.1 solaris.
I assume then I have to build a workflow is that right?
Before you flame me for asking a stupid question, this is the first time I have had such responsibility in a project and I have no one else to ask. I have strictly had template development roles in the past.
Regards
Colin
Find more posts tagged with
Comments
gzevin
well, for removing the button, read about viewoptions tag for templating.cfg
and yes, you'd need some workflow logic to generate , probably based on some business rules. in many cases DCRs are organised in the data directory in a tree that replicates the web site, so the script can parse DCR path and generate the output name....
good luck, Colin
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
tsrookie
Hi Greg,
Thanks, The dcts Im talking about are our navigation dcts, one for the primary nav, and one to generate the secondary nav menus. The output will be ssi's so its important that they are generated with the right names and to the proper places.
Technote 50537
http://devnet.interwoven.com/site.fcgi/techlib/050537
hints that a stylesheet can be useed to do this is this true.
Regards
Colin
gzevin
I don't know what is the story with the stylesheet - viewoptions has more attrbutes, just read the manual.
And yes, we did implement a specific workflow that creates SSI snippets.
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
tsrookie
Thanks Greg,
This is certainly easier than it was in earlier versions of Teamsite, for those of you that have also been following this thread, To remove a button from the DCT you can do so in templating.cfg
<viewoptions> is a subelement of the data-type element using the actionlist attribute you may remove a button from the DCT
note the valid tokens are separated by a semi colon.
e.g
<data-type name="secondaryMenu" dcr-type="iwov">
<viewoptions actionlist="save;saveas;preview;settings" />
<presentation>
<template name="secondarymenu.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
Regards
Colin