0 Replies Latest reply on Jul 4, 2017 5:26 AM by shobha

    To hide the create video under actions tab and create menu.

    shobha

      Hi Team ,

       

      I am working on jive 9 instance and I would like to know how to hide the create video option in create menu drop down and in action tab in all the pages.

       

      -- I have tried to hide it using javascript in createmenu.soy and it works but I would like to do it in jive way using Ui-Components.xml approach.

       

      In these 3 components we have got the id="jive-link-createVideo" .

       

       

      <component id="community-actions">

      <tab>

      <item id="jive-link-createVideo" name="proj.videos.create_video.link" module="video"
         cssClass="jive-icon-med jive-icon-video">

         <when>

        <![CDATA[(statics['com.jivesoftware.community.media.authz.VideoPermHelper'].getCanCreateVideo(project))]]></when>

         <url><![CDATA[<@s.url action="create-video" method="input" namespace="/">

        <@s.param name="contentType" value="${JiveConstants.VIDEO?c}"/>

        <@s.param name="containerType" value="${project.objectType?c}"/>

        <@s.param name="containerID" value="${project.ID?c}L"/>

        </@s.url>]]></url>

      </item>

      </tab>

      </component>

      <component id="socialgroup-actions">

      <tab>

      <item id="jive-link-createVideo" name="proj.videos.create_video.link" module="video"
         cssClass="jive-icon-med jive-icon-video">

         <when>

        <![CDATA[(statics['com.jivesoftware.community.media.authz.VideoPermHelper'].getCanCreateVideo(project))]]></when>

         <url><![CDATA[<@s.url action="create-video" method="input" namespace="/">

        <@s.param name="contentType" value="${JiveConstants.VIDEO?c}"/>

        <@s.param name="containerType" value="${project.objectType?c}"/>

        <@s.param name="containerID" value="${project.ID?c}L"/>

        </@s.url>]]></url>

      </item>

      </tab>

      </component>

       

      <component id="project-actions">

      <tab>

      <item id="jive-link-createVideo" name="proj.videos.create_video.link" module="video"
         cssClass="jive-icon-med jive-icon-video">

         <when>

        <![CDATA[(statics['com.jivesoftware.community.media.authz.VideoPermHelper'].getCanCreateVideo(project))]]></when>

         <url><![CDATA[<@s.url action="create-video" method="input" namespace="/">

        <@s.param name="contentType" value="${JiveConstants.VIDEO?c}"/>

        <@s.param name="containerType" value="${project.objectType?c}"/>

        <@s.param name="containerID" value="${project.ID?c}L"/>

        </@s.url>]]></url>

      </item>

      </tab>

      </component>

       

      Can any one please let me know on how to override the ui-components.xml and hide the item in particular tab and component ?

       

      Or if we have any system property to disable the creation of videos ?

       

       

      Best regards,

      Shobha