3 Replies Latest reply on Jul 21, 2010 3:04 AM by trong.tran

    How to disable the dashboard

    antoen

      I need to disable the dashboard for all users of our portal.

      First of all I tried to remove in conf/gatein/configuration.xml for the PortalContainerDefinition the value dashboard:

       

      <object type="org.exoplatform.container.definition.PortalContainerDefinition">
                          <!-- The path to the external properties file -->
                          <field name="externalSettingsPath">
                              <string>configuration.properties</string>
                          </field>
                          <field name="dependencies">
                              <collection type="java.util.ArrayList">
                                  <value>
                                      <string>eXoResources</string>
                                  </value>
                                  <value>
                                      <string>portal</string>
                                  </value>


      <!--                            <value>
                                      <string>dashboard</string>
                                  </value>

      -->

      ...

      ...

       

      But the dashboard is still available.

       

      Second I removed dashboard.war but this resulted in lots of ERRORS in the logfile.

       

      Third I searched for the text "dashboard" in gatein.ear and was overwhelmed.

       

      Any idea, how to remove the dashboard?

       

      Best regards,

       

      Anton Kronseder

        • 1. Re: How to disable the dashboard
          trong.tran

          To remove the Dashboard on the toolbars, you should remove the following part in the portal.war/WEB-INF/conf/portal/portal/sharedlayout.xml file

           

             ...
             <container id="UserToolBarDashboardPortlet" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
                <portlet-application>
                   <portlet>
                      <application-ref>exoadmin</application-ref>
                      <portlet-ref>UserToolbarDashboardPortlet</portlet-ref>
                   </portlet>
                   <access-permissions>Everyone</access-permissions>
                   <show-info-bar>false</show-info-bar>
                </portlet-application>
             </container>
             ...
          
          1 of 1 people found this helpful
          • 2. Re: How to disable the dashboard
            antoen

            Thanks for your help.

             

            This works, but if a user knows the url (e.g. portal/private/classic/portal-user) he can nevertheless use the dashboard.

             

            So now I did not remove the dashboard, but changed the access-permissions to *:/platform/administrator.

            Now only administrators can use the dashboard.

             

            This is ok for now, but I would like to disable the dashboard and some other portlets specified in the sharedlayout.xml even for the administrator!

             

            So I tried to restrict the usage of the dashboard to *:/platform/nobody and declared a new group nobody with no members, but the administarator is still able to use the dashboard, when he knows the url.

             

            Any hints?

             

            Best regards,

             

            Anton Kronseder

            • 3. Re: How to disable the dashboard
              trong.tran

              the a Dashboard notion here is just an user's page that contains a Dashboard portlet.

               

              I do not understand how a user can create a dashboard in your case in your case ?