Hi Dian,

The 'hideInList' property under node-type definitions tells our Vaadin 
Container how to build the search query.
It is false by default, so presumably you are currently seeing results from 
both types, but in a flat list, i.e. without the hierarchy/relationship.

Unfortunately this is how the search view works in Magnolia—it's built on top 
of a flat list-view at the moment. In other words, it cannot act like a filter 
for the tree-view (arguably).

That said, you can also implement such a filter and configure it under 
workbench > contentTools (in fact, the search-box is a content tool added by 
default).
The typical approach is then to fire an event in order to update the 
TreePresenter (or instruct it to update the Container).

Here's an example from our JCR Browser app:

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/jcr-browser-app/src/main/java/info/magnolia/jcrbrowser/app/contenttools/JcrBrowserContextTool.java

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/jcr-browser-app/src/main/java/info/magnolia/jcrbrowser/app/contentviews/JcrBrowserTreePresenter.java

Cheers,
Mika

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=62d9d4b2-4b6a-4b94-a091-0f98a0f10d52


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to