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 Generate &Preview buttons
System
Hi,
We are trying to hide the Preview and Generate buttons on the DCT. I've tried using a script i found on DevNet. It works fine, But the problem is with the timeout value .We dont want to change tje buttonframe.jsp . Is there any other way of achieving this?
Any help in this regard is highly appreciated.
Find more posts tagged with
Comments
bkret
There is a javascript way to do this. This is not supported UserScript....
We have replaced the Generate with a help button but you could replace it with a blank gif.
myInterval = self.setInterval('rplcGenerate()',1000);
function rplcGenerate(){
try{
if(parent.frames[1].document.links[4].href){
parent.frames[1].document.links[4].href="javascript:parent.getScriptFrame().displayHelp();javascript:void(0);";
//parent.frames[1].document.links[4].href="javascript:window.open(comeUrl');javascript:void(0);";
parent.frames[1].document.images[5].src="images/en/AgencyDistribution/btn_help.gif"
parent.frames[1].document.images[5].alt="Teamsite Education Repository";
self.clearInterval(myInterval);
}
}
catch(er){}
}
Brandon Krett
Team Lead
Allstate Inc
Migrateduser
Just to re-inforce what was said in the previous post, if you do this, updates and SPs will over-write your code. Do this at your own risk, and keep careful track of what you change.
lissa
bkret
Actually since this is in a UserScript file the problems faced are if in a future release Interwoven changes frame names.
Brandon Krett
Team Lead
Allstate Inc