We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36604
    • 268 Posts
    Hi again,

    As I described in my first post around those questions [ https://forums.modx.com/thread/94586/any-way-to-get-the-next-ressource-id-in-a-getressource-call?answer=512384 ]
    , I need
    in a Getressources (now it's pdoRessources) request,
    that gather data from all the current page's subpages in order to reinject them into the home page,
    under individual blocks, named with the subpage's pagetitle id='[[+!pagetitle]]
    to get in each loop the next sibling subpage to create a 'next' link (pointing to #anchor, not another /url)

    Trying pdoNeighbors inside my pdoResources tpl

    &tplNext tpl :
    <a class="down-arrow-btn" href="#[[!+pagetitle]]"><i class="glyphicon glyphicon-chevron-down"></i></a>


    in the loop at the moment where pdoRessources is looking a subpage it returns in its debug log the correct sibling pages.
    Without any specific tpl, it outputs some correct prev/up/next link to those subpage (url).

    But I want not an [[+uri]], I just need to get the [[+pagetitle]] of the concerned sibling page (that is the #id of the html block I need to point to)
    but this call does not outputs anything except the content of &tplWrapper=`PDON-tpl`, virgin from any [[+right]] data

    [[!pdoNeighbors? &id=`[[!+id]]`  &tplWrapper=`PDON-tpl` &tplNext=`@INLINE <a class="down-arrow-btn" href="#[[!+pagetitle]]"><i class="glyphicon glyphicon-chevron-down"></i>[[+menutitle]] [[+uri]]</a>` &showLog=`1`]]
    			</p>


    tplWrapper=`PDON-tpl`:
    <p class="la_suite pdon">[[+right]]
    </p>


    Hope it's clear aenough

    Thank you

    This question has been answered by elz064. See the first response.

    [ed. note: elz064 last edited this post 12 years ago.]
    • discuss.answer
      • 36604
      • 268 Posts
      I just reposted a new question much more simplier.