Closed (fixed)
Project:
Node Hierarchy
Version:
7.x-2.x-dev
Component:
Children User Interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2012 at 13:56 UTC
Updated:
2 Nov 2012 at 13:00 UTC
Hi! I was looking for a solution for some time and I couldn't find anything.
I would like to know if it is possible to print a Parent node's link (when a child node is displayed) in node.tpl.php.
Thanks in advance.
Comments
Comment #1
mellamoanton commentedI found a solution. I've created a Views' block with Node Hierarchy: Parent Node ID as Relationship, Content: Nid as Contextual filter and Content: Title (with the relationship) as field.
It works right, but... what's my problem? I'm loading the content via Ajax, so Contextual filter only works when I refresh the page (you see the content through the URL, not Ajax).Any help is welcome.
Solved: I placed the block in the region Content and everything works right.
Comment #2
mellamoanton commented