EP : Hide "simple search" in Nuxeo "Header bar" (USER_CENTER) ?

Hello,

I try to hide the simple search inputText + button “Search” from the HeaderBar of Nuxeo platform, for anonymous user.

I Try :

<action id="simple_search">
  <filter-id>not_anonymous</filter-id>
</action>

But it's not the good one i suppose? Do you know what is the action id name ?

thanks

0 votes

1 answers

3011 views

ANSWER



Hi,

The default search box can be overriden by defining a new action with category “SEARCH_BOX_TEMPLATE”. The “link” attribute needs to give the path to a xhtml template replacing the standard search box with your own logic (see https://github.com/nuxeo/nuxeo-dm/blob/release-5.6/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/incl/nuxeo_header_template.xhtml)

0 votes



Hello,

Thank you very much for this explanation.

Is it possible to make more simple? Because the search bar is ok, I just want to hide it from anonymous ?

When i try to hide (enabled="false") "simple_search" from everyone it was still there, so I through it was not the action to hide ? Am i wrong ?

thank you

04/11/2013