<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to add a virtual navigation tree ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320272#M7273</link>
    <description>&lt;P&gt;no, no errors are displayed on the logs.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2012 12:30:58 GMT</pubDate>
    <dc:creator>jeremie_</dc:creator>
    <dc:date>2012-02-10T12:30:58Z</dc:date>
    <item>
      <title>how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320268#M7269</link>
      <description>&lt;P&gt;hi, i m trying to enable another navigation tree. for the moment, my contribution looks like this :&lt;/P&gt;
&lt;P&gt;i declared a schema to hold my query&lt;BR /&gt; /&amp;gt;
target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&lt;/P&gt;
&lt;P&gt;create a document LocationSearch&lt;BR /&gt; /&amp;gt;
target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"
and the tree&lt;BR /&gt; /&amp;gt;
target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService" point="trees"&lt;/P&gt;
&lt;P&gt;but i certainly miss something with the new content view &lt;EM&gt;byLocationsContentView&lt;/EM&gt;:&lt;/P&gt;
&lt;P&gt;i declared my view with this extension point&lt;BR /&gt; /&amp;gt;
target="org.nuxeo.ecm.platform.ui.web.ContentViewService" point="contentViews"&lt;/P&gt;
&lt;P&gt;adding &lt;EM&gt;locations_virtual_navigation.xhtml&lt;/EM&gt; under nuxeo.war&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ui:decorate template="/incl/virtual_navigation_template.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"&amp;gt;
    &amp;lt;ui:param name="contentViewName" value="byLocationsContentView" /&amp;gt;
&amp;lt;/ui:decorate&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and my deployment fragment&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;fragment&amp;gt;
  &amp;lt;extension target="application#MODULE"&amp;gt;
    &amp;lt;module&amp;gt;
      &amp;lt;java&amp;gt;${bundle.fileName}&amp;lt;/java&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/extension&amp;gt;
  
  &amp;lt;install&amp;gt;

    &amp;lt;!-- Unzip the contents of our nuxeo.war into the server --&amp;gt;
    &amp;lt;unzip from="${bundle.fileName}" to="/"&amp;gt;
      &amp;lt;include&amp;gt;nuxeo.war/**&amp;lt;/include&amp;gt;
    &amp;lt;/unzip&amp;gt;

  &amp;lt;/install&amp;gt;
  
    &amp;lt;extension target="faces-config#NAVIGATION"&amp;gt;

		&amp;lt;navigation-case&amp;gt;
		  &amp;lt;from-outcome&amp;gt;locations_virtual_navigation&amp;lt;/from-outcome&amp;gt;
		  &amp;lt;to-view-id&amp;gt;/locations_virtual_navigation.xhtml&amp;lt;/to-view-id&amp;gt;
		  &amp;lt;redirect /&amp;gt;
		&amp;lt;/navigation-case&amp;gt;
	
	&amp;lt;/extension&amp;gt;

  &amp;lt;extension target="pages#PAGES"&amp;gt;

    &amp;lt;page view-id="/locations_virtual_navigation.xhtml"&amp;gt;
      breadcrumb=test
    &amp;lt;/page&amp;gt;

  &amp;lt;/extension&amp;gt;
    
&amp;lt;/fragment&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;@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.&lt;/P&gt;
&lt;P&gt;for example, this is a try in the coverage view.
&lt;EM&gt;DEBUG [org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression] Resolved expression var='contentViewName' for mapper with id '1176491654_3d42a2f6_1': byCoverageContentView&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;and this is in my custom view. obviously, it did not call the good view, but i can't figure out why ?&lt;BR /&gt; /&amp;gt;
&lt;EM&gt;DEBUG [org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression] Resolved expression var='contentViewName' for mapper with id '-574529264_4dcfd17_1': document_content&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:27:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320268#M7269</guid>
      <dc:creator>jeremie_</dc:creator>
      <dc:date>2012-02-09T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320269#M7270</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 22:54:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320269#M7270</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-02-09T22:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320270#M7271</link>
      <description>&lt;P&gt;sorry for the xml but the pre-formatted button doesn't look's to work on my computer...apparently, it's not possible to mix code and unordered list in the same post.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 23:13:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320270#M7271</guid>
      <dc:creator>jeremie_</dc:creator>
      <dc:date>2012-02-09T23:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320271#M7272</link>
      <description>&lt;P&gt;Thanks for the update, i'm assuming you don't have any ERROR logs?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 09:42:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320271#M7272</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-02-10T09:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320272#M7273</link>
      <description>&lt;P&gt;no, no errors are displayed on the logs.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 12:30:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320272#M7273</guid>
      <dc:creator>jeremie_</dc:creator>
      <dc:date>2012-02-10T12:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320273#M7274</link>
      <description>&lt;P&gt;ok, i finnaly find the problem...i was testing my contribution within the ide.&lt;/P&gt;
&lt;P&gt;The view was not registred when i deploy my contribution directly in the eclispe nuxeo-ide, but everything is working when i export a jar file.&lt;/P&gt;
&lt;P&gt;here is the contribution :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;     &amp;lt;!-- le schema qui contient la navigation virtuelle --&amp;gt;  
&amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
	&amp;lt;schema name="locationsearch" src="schemas/location_search.xsd" prefix="ls"/&amp;gt;
&amp;lt;/extension&amp;gt;	  

    &amp;lt;!-- le document qui contient le schema précedent --&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"&amp;gt;   
    &amp;lt;doctype extends="Document" name="LocationSearch"&amp;gt;
		&amp;lt;schema name="locationsearch"/&amp;gt;
    &amp;lt;/doctype&amp;gt;
&amp;lt;/extension&amp;gt;

    &amp;lt;!-- Crée la vue qui va permettre d'afficher les résultats --&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
point="contentViews"&amp;gt;

&amp;lt;contentView name="byLocationsContentView"&amp;gt;
  &amp;lt;title&amp;gt;location search&amp;lt;/title&amp;gt;
  &amp;lt;translateTitle&amp;gt;false&amp;lt;/translateTitle&amp;gt;
  &amp;lt;showTitle&amp;gt;true&amp;lt;/showTitle&amp;gt;
  &amp;lt;emptySentence&amp;gt;label.content.empty.search&amp;lt;/emptySentence&amp;gt;
  &amp;lt;translateEmptySentence&amp;gt;false&amp;lt;/translateEmptySentence&amp;gt;
 
  &amp;lt;coreQueryPageProvider&amp;gt;
    &amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
    &amp;lt;whereClause docType="LocationSearch"&amp;gt;
      &amp;lt;predicate operator="STARTSWITH" parameter="lc:locations"&amp;gt;
        &amp;lt;field name="location_search_query" schema="locationsearch"/&amp;gt;
      &amp;lt;/predicate&amp;gt;
      &amp;lt;fixedPart&amp;gt;
        ecm:mixinType != 'HiddenInNavigation' AND
        ecm:currentLifeCycleState
        !='deleted' AND ecm:isCheckedInVersion = 0
      &amp;lt;/fixedPart&amp;gt;
    &amp;lt;/whereClause&amp;gt;
    &amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
    &amp;lt;pageSize&amp;gt;10&amp;lt;/pageSize&amp;gt;
  &amp;lt;/coreQueryPageProvider&amp;gt;

  &amp;lt;showPageSizeSelector&amp;gt;true&amp;lt;/showPageSizeSelector&amp;gt;
  &amp;lt;useGlobalPageSize&amp;gt;true&amp;lt;/useGlobalPageSize&amp;gt;
  &amp;lt;refresh&amp;gt;
    &amp;lt;event&amp;gt;documentChildrenChanged&amp;lt;/event&amp;gt;
  &amp;lt;/refresh&amp;gt;
  &amp;lt;cacheKey&amp;gt;only_one_cache&amp;lt;/cacheKey&amp;gt;
  &amp;lt;cacheSize&amp;gt;1&amp;lt;/cacheSize&amp;gt;

  &amp;lt;resultLayouts&amp;gt;
    &amp;lt;layout name="document_virtual_navigation_listing_ajax" title="document_listing"
      translateTitle="true" iconPath="/icons/document_listing_icon.png"
      showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" /&amp;gt;
    &amp;lt;layout name="document_virtual_navigation_listing_ajax_compact_2_columns"
      title="document_listing_compact_2_columns" translateTitle="true"
      iconPath="/icons/document_listing_compact_2_columns_icon.png"
      showSyndicationLinks="true" /&amp;gt;
    &amp;lt;layout name="document_virtual_navigation_listing_ajax_icon_2_columns"
      title="document_listing_icon_2_columns" translateTitle="true"
      iconPath="/icons/document_listing_icon_2_columns_icon.png"
      showSyndicationLinks="true" /&amp;gt;
  &amp;lt;/resultLayouts&amp;gt;

  &amp;lt;selectionList&amp;gt;CURRENT_SELECTION&amp;lt;/selectionList&amp;gt;
  &amp;lt;actions category="CURRENT_SELECTION_LIST" /&amp;gt;

&amp;lt;/contentView&amp;gt;
 
&amp;lt;/extension&amp;gt;


&amp;lt;!-- ajout de la navigation virtuelle  --&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService"
point="trees"&amp;gt;

    &amp;lt;directoryTree name="byLocationsNavigation" label="My location Test"
    contentView="byLocationsContentView" field="location_search_query"
    schema="locationsearch" outcome="locations_virtual_navigation"&amp;gt;
        &amp;lt;directory&amp;gt;departements&amp;lt;/directory&amp;gt;
        &amp;lt;directory&amp;gt;villes&amp;lt;/directory&amp;gt;
	&amp;lt;/directoryTree&amp;gt;

&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2012 01:05:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320273#M7274</guid>
      <dc:creator>jeremie_</dc:creator>
      <dc:date>2012-02-13T01:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320274#M7275</link>
      <description>&lt;P&gt;You may create a JIRA ticket or use the Forum and explain exactly the procedure to reproduce the way to not have the bundle deployed with Nuxeo IDE. This feature works and we may miss something or you may miss something. If you want to benefit of the hot reload features, this could be better for you&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 09:54:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320274#M7275</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-02-13T09:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a virtual navigation tree ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320275#M7276</link>
      <description>&lt;P&gt;ok, i post my contribution in the french forum&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-virtual-navigation-tree/m-p/320275#M7276</guid>
      <dc:creator>jeremie_</dc:creator>
      <dc:date>2012-02-13T11:25:40Z</dc:date>
    </item>
  </channel>
</rss>

