Original Message:
Sent: Wed May 31, 2023 12:09 PM
From: GOPALKRISHNA PARVATIKAR
Subject: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working
Hi Shashi,
We also want to disable Multipart tab in properties but not finding way. You showed sample code to disable tabs in properties. Just for our clarity exactly which file we need to make change (custom code) . Pardon me for this question as we are new to ICN coding.
Presently we tried to comment " this._addContentElementsTab()" in ItemEditPane.js.
It removes Multipart tab but only in debug mode .
If it worked for you then your help is appreciated.
------------------------------
GOPALKRISHNA PARVATIKAR
Original Message:
Sent: Thu March 16, 2023 03:09 AM
From: shashi kumar
Subject: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working
Hi Ravi ,
It looks like by the time your aspect intercept show method of EditPropertiesDialog item properties pane is not loaded completely in dialog domNode. It's better we add same logic after item properties pane is fully completed it's rendering. adding a sample code for your reference
code
require(["dojo/aspect","ecm/widget/ItemEditPane" , "dojo/_base/array","dojo/_base/lang","dojo/dom-class"], function(aspect,ItemEditPane,array,lang,domClass) { aspect.after(ItemEditPane.prototype, "onCompleteRendering", function() { var tabs = this._tabContainer.tablist.getChildren(); array.forEach(tabs,lang.hitch(this,function(tab) { if( (tab && tab.label == "Comments") || (tab && tab.label == "Security") || (tab && tab.label == "Versions") || (tab && tab.label == "Parent Documents") || (tab && tab.label == "Content Elements") || (tab && tab.label == "Folders Filed In") ) { domClass.add(tab.domNode, "dijitHidden"); } })); }); });
UI
Best Regards,
shashi kumar.L
------------------------------
shashi kumar
Original Message:
Sent: Tue March 14, 2023 12:06 PM
From: RAVI KUMAR
Subject: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working
Hi Community,
I am using ICN 3.0.13. I have the below plug-in code to hide the tabs Security, Versions, Parent Documents, Content Elements and Folders File In. It was working fine. Recently noticed that it is not working. Could you please let me know if you have any idea.
I put "ecm/widget/dialog/EditPropertiesDialog" in the require.
aspect.after(ecm.widget.dialog.EditPropertiesDialog.prototype, "show", function() {
//security pane
if(this._itemEditPane._itemSecurityPane)
this._itemEditPane._itemSecurityPane.controlButton.domNode.style.display = "none";
//folders filed in
if(this._itemEditPane._itemFoldersFileInPane)
this._itemEditPane._itemFoldersFileInPane.controlButton.domNode.style.display = "none";
//parent document pane
if(this._itemEditPane._itemParentDocumentsPane)
this._itemEditPane._itemParentDocumentsPane.controlButton.domNode.style.display = "none";
//version selector pane
// this._itemEditPane._versionSelectorPane.domNode.style.display = "none";
if(this._itemEditPane._itemVersionsPane)
this._itemEditPane._itemVersionsPane.controlButton.domNode.style.display = "none";
//content elements pane
if(this._itemEditPane._itemContentElementsPane)
this._itemEditPane._itemContentElementsPane.controlButton.domNode.style.display = "none";
});
------------------------------
RAVI KUMAR
------------------------------