This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » fetch node_path in eZ Publish 5

fetch node_path in eZ Publish 5

fetch node_path in eZ Publish 5

Wednesday 10 September 2014 12:25:59 pm - 8 replies


Have you any idea how we can find a location with a path link (equivalent of fetch node_path in eZ4).

Wednesday 10 September 2014 1:53:42 pm

Are you referring to pathString? Like "/home/articles/something"?
If so this is more or less taken over by UrlAlias since 3.10.

As for "/2/33/65" this is supported some places (REST and Subtree criterion afaik), but you can also easily extract last id and load by it.

Wednesday 10 September 2014 2:51:41 pm

Hi André,

The problem is that, I don't have the pathString of location (Like '/1/2/60/'), but I will find this location just with a path link (Like "/home/articles/something"blunk.gif Emoticon.

The only information I have is this path link, in ez4 i use the fetch node with path_node parameter, but in eZ5 I don't find any criterion with this property.

Wednesday 10 September 2014 3:22:57 pm

Could you mention why you only have this? Aka what is the use case?

Background: we have more or less planed to remove it as id, url alias and remote id cover the use cases it covered in the pre v3.10 past.

Modified on Wednesday 10 September 2014 3:24:36 pm by André R

Wednesday 10 September 2014 3:51:19 pm

For purposes of referencing, I have to pass the path link and not the pathString.

It's a migration of an EZ4 extension to a bundle EZ5.

Wednesday 10 September 2014 4:30:27 pm

Hi Soufian

You want to build a breadcrumbs right ? Then you should use something like BreadcrumbsBundle from WhiteOctober. We use it in the DemoBundle and should be therefore already loaded into your eZ Publish. You may have a look at our implementation and get some inspiration from it blunk.gif Emoticon.

Thursday 11 September 2014 10:36:59 am

Hi Jérôme,

Thank you for your post.

That can help me to find other solutions happy.gif Emoticon .

Thursday 12 February 2015 9:34:23 am

Hi all,

I have the same problem. As I see, the node_path could be used in the legacy stack in datatype/view/ezxmltext/link.tpl , if you want to fetch the object embeded in the online editor. E.g

Here the $href is like: "/content/view/line/114"

To access the node the node_path was a solution to achieve this:

{def $my_node=fetch( 'content', 'node', hash( 'node_path', $href ) )}



Saturday 14 March 2015 2:04:30 pm

Thank you for the analysis Andreas.

And do you see no equivalent for this use-case in the way the new stack handles links in XmlText ?


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from