Content Management and Capture

 View Only
  • 1.  Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Tue March 14, 2023 12:06 PM

    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
    ------------------------------


  • 2.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Tue March 14, 2023 12:15 PM

    hello Ravi,

    Your question is not clear.

    You say the custom code was working fine and then noticed that it is not working fine.

    Which of these observations is correct?

    What do 'working fine'  and 'not working fine' mean? That is, what is the expect results from using this custom code and what is the actual result.

    Please clarify.



    ------------------------------
    Nanda Pilaka
    IBM Content Navigator Support
    ------------------------------



  • 3.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Wed March 15, 2023 07:11 AM

    Hi Nanda,

    Thank you for the reply.

    In the document search results, the Context Menu has action "Properties". When I click on this action it has different tabs "Properties, Security, Versions, Parent Documents, Content Elements and Folders Filed In". PFA the screen shot.

    The expected result from the above code is, it should hide the tabs except Properties. Working fine means, the tabs were hidden. Not working means the tabs are not hiding.

    Regards,

    Ravi

    EditPropertiesDialog


    ------------------------------
    RAVI KUMAR
    ------------------------------



  • 4.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Wed March 15, 2023 12:24 PM

    hi Ravi,

    We received this question before and the answer is that it is not possible to hide the Security or other tabs in the Properties dialog. There are interdependencies involved which prevent this.



    ------------------------------
    Nanda Pilaka
    IBM Content Navigator Support
    ------------------------------



  • 5.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Thu March 23, 2023 07:35 AM

    Hi Nanda,

    The users who have ReadWrite access could change the security. This is not ok. May I know do you have any other solution.

    Regards,

    Ravi



    ------------------------------
    RAVI KUMAR
    ------------------------------



  • 6.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Thu March 16, 2023 03:09 AM
    Edited by shashi kumar Thu March 16, 2023 03:13 AM

    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
    ------------------------------



  • 7.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Thu March 23, 2023 09:13 AM

    Hi Sashi,

    Your code works fine. Thank you very much.

    Not sure why my code is not working. Looks like the implementation related to this has been changed.

    Regards,

    Ravi



    ------------------------------
    RAVI KUMAR
    ------------------------------



  • 8.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    Posted Wed May 31, 2023 12:09 PM

    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
    ------------------------------



  • 9.  RE: Content Navigator: Customization to hide tabs Security, Versions, Parent Document not working

    IBM Champion
    Posted Thu June 01, 2023 06:43 AM

    Hi GOPALKRISHNA ,

    do not change files in the navigator deployment directly. There is a plugin interface that can be used to make adjustments - for example, using aspect as described above. 
    These extensions also work in the compressed scripts of the navigator (beyond the debug mode).
     
    Or find a partner who can support you.

    Best regards

    Christoph



    ------------------------------
    Christoph Sünderkamp
    ------------------------------