Jahia Template Forum > How can the parent...

0 (0 Good)
0 (0 Bad)

How can the parent of a page be retrieved?

by  qwertz »  2011/06/07 19:56

Hello,
first, please excuse my bad english.
I have successfully managed to extend the web-templates to add a custom site type (showing a knowledge base). But now i am stuck at a certain point.
what i want to do is to show the title of a parent page on a child page, kind of like in the breadcrumb menu but only going one level up.
i tried this:
[code:1j8xgv2p]lt;ui
  • How can the parent of a page be retrieved?
    2011/06/07 19:56

    qwertz Hello,<br/>first, please excuse my bad english.<br/>I have successfully managed to extend the web-templates to add a custom site type (showing a knowledge base). But now i am stuck at a certain point.<br/>what i want to do is to show the title of a parent page on a child page, kind of like in the breadcrumb menu but only going one level up.<br/>i tried this:<br/>[code:1j8xgv2p]lt;ui

  • Number of messages  3
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: How can the parent of a page be retrieved?

    by  mesdocs »  2011/06/07 19:56

    Hi,

    In Jahiapedia, I read that one could get the parent page of the current page using ${currentPage.parentPage}

    Maybe you can use ${requestScope.currentPage.parentPage.highLightDiffTitle}.

    see : http://www.jahia.org/cms/lang/en/home/j ... _Libraries

    Mesdocs.
  • Re: How can the parent of a page be retrieved?
    2011/06/07 19:56

    mesdocs Hi,<br/><br/>In Jahiapedia, I read that one could get the parent page of the current page using ${currentPage.parentPage}<br/><br/>Maybe you can use ${requestScope.currentPage.parentPage.highLightDiffTitle}.<br/><br/>see : <!-- m --><a class="postlink" href="http://www.jahia.org/cms/lang/en/home/jahiapedia/Template_Developer_Guide/Tag_Libraries">http://www.jahia.org/cms/lang/en/home/j ... _Libraries</a><!-- m --><br/><br/>Mesdocs.

  • Number of messages  53
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: How can the parent of a page be retrieved?

    by  qwertz »  2011/06/07 19:56

    Thank you so very much, ${requestScope.currentPage.parentPage.highLightDiffTitle} works :)
    I have read the document you mentioned but must have overlooked this expression.

    I wonder, wether there is a little bit more documentation? For expample i couldn't find quot;highLightDiffTitle
  • Re: How can the parent of a page be retrieved?
    2011/06/07 19:56

    qwertz Thank you so very much, ${requestScope.currentPage.parentPage.highLightDiffTitle} works <!-- s:) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!-- s:) --><br/>I have read the document you mentioned but must have overlooked this expression.<br/><br/>I wonder, wether there is a little bit more documentation? For expample i couldn't find quot;highLightDiffTitle

  • Number of messages  3
    Registration date Jun 7, 2011
    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