cancel
Showing results for 
Search instead for 
Did you mean: 

Xhtml : get all a document path with "Title" and not "name"

milonette_
Star Collaborator
Star Collaborator

Hello,

I want to get all the path of a document in my code XHTML but not with "name", with title as in the breadcrumbActions navigation tool.

I would like this code, but with a documentModel in parameter and not the currentDocument :

      <h:column>
        <nxu:dataList var="pathElement" value="#{breadcrumbActions.backendPath}">
          <f:verbatim>&amp;gt;&amp;nbsp;</f:verbatim>
          <h:outputText value="#{pathElement.name}" />
        </nxu:dataList>
      </h:column>

do you know how to loop on a documentModel path in xhtml ?

thanks

1 ACCEPTED ANSWER

Marwane_K_A_
Star Contributor
Star Contributor

Hi,

I'm a bit late, but there's also another bean that implements this:

publishActions.getFormattedPath(model.pathAsString)

The only issue is that it concatenates documents with a hard-coded ">". Of course you could hack it with a:

publishActions.getFormattedPath(model.pathAsString).replaceAll(">", " / ")

View answer in original post

9 REPLIES 9

Can I use this bean in MVEL or Freemarker template (and how ?) thank you

Sorry but it's more complicated to insert this in a template, also it depends on what templates exactly (workflow notification? other mail notifications? document template?) Anyway you'd probably have to write some Java to be able to do this.

Oh

You could post this as a new question, maybe the Nuxeo team has more to say about it.

Ok thanks 😉

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.