cancel
Showing results for 
Search instead for 
Did you mean: 

making plugins unavailable for users

pallavi_jain
Champ in-the-making
Champ in-the-making
I want to hide the links Open search, category browsing and shelf, which appear in the drop down in the sidebar, from all users.
That is, for my project, i do not want these Plugins.

how do I achieve this?
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
add
<shelf-visible>false</shelf-visible>

in your web-client-config-custom.xml

and have your tried overrriding this config in your web-client-config-custom.xml

<config evaluator="string-compare" condition="Sidebar">
      <sidebar>
         <!– the list of plugins available in the sidebar –>
         <plugins>
            <plugin id="navigator" label-id="navigator" description-id="navigator_desc"
                    page="/jsp/sidebar/navigator.jsp" actions-config-id="navigator_actions" />
            <plugin id="shelf" label-id="shelf" description-id="shelf_desc"
                    page="/jsp/sidebar/shelf.jsp" />
            <plugin id="opensearch" label-id="opensearch" description-id="opensearch_desc"
                    page="/jsp/sidebar/opensearch.jsp" />
            <plugin id="category-browser" label-id="category_browser_plugin_label"
                    description-id="category_browser_plugin_description" actions-config-id="category_plugin_actions"
                    page="/jsp/sidebar/category-browser.jsp" />
         </plugins>
        
         <!– the default sidebar plugin to be shown on app startup –>
         <default-plugin>navigator</default-plugin>
      </sidebar>
   </config>

pallavi_jain
Champ in-the-making
Champ in-the-making
Yes, I tried that. This doesn't seem to work.
Add false?
Where?
well here is the plugin section of my web-client-config-custom.xml

<config evaluator="string-compare" condition="Sidebar">
      <sidebar>
         <!– the list of plugins available in the sidebar –>
         <plugins>
            <plugin id="navigator" label-id="navigator" description-id="navigator_desc"
                    page="/jsp/extension/customnavigator.jsp" actions-config-id="navigator_actions" />

            <!– <plugin id="shelf" label-id="shelf" description-id="shelf_desc"
                    page="/jsp/sidebar/shelf.jsp" />
            <plugin id="opensearch" label-id="opensearch" description-id="opensearch_desc"
                    page="/jsp/sidebar/opensearch.jsp" />
            <plugin id="category-browser" label-id="category_browser_plugin_label"
                    description-id="category_browser_plugin_description" actions-config-id="category_plugin_actions"
                    page="/jsp/sidebar/category-browser.jsp" />–>
         </plugins>
        
         <!– the default sidebar plugin to be shown on app startup –>
         <default-plugin>navigator</default-plugin>
      </sidebar>
   </config>

I have commented out the unwanted plugins, still it is the same.

mitpatoliya
Star Collaborator
Star Collaborator
hey could you just crosscheck one more time by changing

<default-plugin>navigator</default-plugin>
to
<default-plugin>shelf</default-plugin>

Just wanted to make sure it is overriding config or not

pallavi_jain
Champ in-the-making
Champ in-the-making
yes, the chnages are reflected.
when i changed
<default-plugin>navigator</default-plugin>
to
<default-plugin>shelf</default-plugin>
shelf appears as the default plugin.

mitpatoliya
Star Collaborator
Star Collaborator
add just  <shelf-visible>false</shelf-visible> in web-client-config-custom.xml
to remove it.

Also If your this <default-plugin>shelf</default-plugin> change is affected why others are not being overridden, I do not understand may be you are missing something.

pallavi_jain
Champ in-the-making
Champ in-the-making
Hi Mits,
here is the change that i made in web-client-config-custom.xml:
<config evaluator="string-compare" condition="Sidebar" replace="true">
Adding replace="true" solves the problem.
Now only Navigator is available in the sidebar dropdown.