Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Disabling Preview Button on DCT
rohitspathak123
How do we disable and hide Preview button that appears on the Datacapture Template ?
Is there any way of doing this OR is it not possible to do this ?
If yes , pls let me know how do we do it .
Regards,
Rohit
Find more posts tagged with
Comments
tsrookie
Hi Rohit,
If you are using Teamsite 6.1 you can in templating.cfg (the viewoptions tag) otherwise you can remove using form api.
Regards
Colin
rohitspathak123
Hi Colin ,
Thanks for reply .
Can u tell me how do we disable preview button on DCRs & DCTs . what is the code for it ?
I am using Teamsite 6.5 .
Regards,
tsrookie
Ok,
In templating.cfg you have to modify the entry for the dct concerned.
here is an example from ours. This template called secondaryMenu only has a save button.
to remove preview use
<viewoptions actionlist="save; saveas; generate" />
Regards
Colin
<data-type name="secondaryMenu" dcr-type="iwov">
<allowed>
<not>
<or>
<cred role='author'></cred>
<cred role='editor'></cred>
</or>
</not>
</allowed>
<viewoptions actionlist="save" />
<presentation>
<template name="secondarymenu.tpl" extension="ssi">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
Migrateduser
I am using the templating.cfg option to do this. However, out of curiousity, how would you use FormAPI to do it?
Andy
-------------------------------
E-Mail :
farnsaw@stonedoor.com
iwovGraduate
Search the forums. Its been discussed many times. Theres also a technote or two (and/or kbs) on it if I recall correctly.