Jahia Dev Forum > How to Get Parent...

1 (1 Good)
0 (0 Bad)

How to Get Parent Node Componants?

by  bhadreshshiroya »  2014/02/20 09:52

I have Two page like root ,and child after i have  added  two componants in root page 

can i get the root componants list and node like object in child page (same contents added to the root page)

Finally my goal is add componats parent page

Get the all  componats list  in child page dosen't changes the value

 

 

 

  • How to Get Parent Node Componants?
    2014/03/04 06:22

    bhadreshshiroya <p> I have Two page like root ,and child after i have &nbsp;added &nbsp;two componants in root page&nbsp;</p> <p> can i get the root componants list and node like object in child page (same contents added to the root page)</p> <p> Finally my goal is add componats parent page</p> <p> Get the all &nbsp;componats list &nbsp;in&nbsp;child page dosen&#39;t changes the value</p> <p> &nbsp;</p> <p> &nbsp;</p> <p> &nbsp;</p>

  • Number of messages  18
    Registration date Feb 20, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: How to Get Parent Node Componants?

    by  shyrkov »  2014/03/11 14:06

    Hello,

    if you would like child page to display content of the parent perhaps you could model it in the Studio using parent-child template scheme.

    Otherwise, you could display in the child page any node (also a content list) from the parent, if you know the path, e.g.:

    <template:module node="${currentNode.parent.path}/listA"/>

     

    Kind regards

    Sergiy

  • Re: How to Get Parent Node Componants?
    2014/03/11 14:06

    shyrkov <p> Hello,</p> <p> if you would like child page to display content of the parent perhaps you could model it in the Studio using parent-child template scheme.</p> <p> Otherwise, you could display in the child page any node (also a content list) from the parent, if you know the path, e.g.:</p> <p> &lt;template:module node=&quot;${currentNode.parent.path}/listA&quot;/&gt;</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Mar 11, 2014
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page