hi, i m trying to enable another navigation tree. for the moment, my contribution looks like this :
i declared a schema to hold my query
/>
target="org.nuxeo.ecm.core.schema.TypeService" point="schema"
create a document LocationSearch
/>
target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"
and the tree
/>
target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService" point="trees"
but i certainly miss something with the new content view byLocationsContentView:
i declared my view with this extension point
/>
target="org.nuxeo.ecm.platform.ui.web.ContentViewService" point="contentViews"
adding locations_virtual_navigation.xhtml under nuxeo.war
<ui:decorate template="/incl/virtual_navigation_template.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:param name="contentViewName" value="byLocationsContentView" />
</ui:decorate>
and my deployment fragment
<?xml version="1.0"?>
<fragment>
<extension target="application#MODULE">
<module>
<java>${bundle.fileName}</java>
</module>
</extension>
<install>
<!-- Unzip the contents of our nuxeo.war into the server -->
<unzip from="${bundle.fileName}" to="/">
<include>nuxeo.war/**</include>
</unzip>
</install>
<extension target="faces-config#NAVIGATION">
<navigation-case>
<from-outcome>locations_virtual_navigation</from-outcome>
<to-view-id>/locations_virtual_navigation.xhtml</to-view-id>
<redirect />
</navigation-case>
</extension>
<extension target="pages#PAGES">
<page view-id="/locations_virtual_navigation.xhtml">
breadcrumb=test
</page>
</extension>
</fragment>
@Anahide, everything else is working, and if i call the bySubjectContentView instead of my view in the DirectoryTreeService extension point, the result is another Subject tree.
for example, this is a try in the coverage view.
DEBUG [org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression] Resolved expression var='contentViewName' for mapper with id '1176491654_3d42a2f6_1': byCoverageContentView
and this is in my custom view. obviously, it did not call the good view, but i can't figure out why ?
/>
DEBUG [org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression] Resolved expression var='contentViewName' for mapper with id '-574529264_4dcfd17_1': document_content