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

    I am nesting pages and trying to get content from the level under displayed on parent page.

    In the on my top level page id 30, I call in the content :
    [[getResourceField? &id=`35` &field=`content`]]

    I have a second level page numbered 35 that content is only
    Hello
    ,
    when I display my parent page #30, I get Hello displayed !

    When I change my call in parent page 30 to :

    [[getResourceField? &id=`32` &field=`content`]]


    And my second level page numbered 32 content is :
    [[Wayfinder? &rowTpl=`marqueTpl` &rowIdPrefix=``]]


    I get nothing !

    Although my page 32 displays properly when directly used.

    Is it because it is not allowed to nest calls in such a way ?


    I am running modx 2.2.6-pl (advanced), getResourceField 1.0.3 and wayfinder 2.3.3

    Thanks for help.

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

    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try it with a specific &startId property. Although I'm not sure if getField will process snippets, or if the page will get passed through the parser again after the getField results is inserted.

      I do know when using symlinks, which pull the content from the specified resource, that listing snippets like Wayfinder and getResources will try to use the actual symlink resource as the default start, not the one whose content is loaded.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 9674
        • 170 Posts
        Thanks again Susan,

        For the second time on the same day, you made it ! ;-)

        I changed my wayfinder call to :

        [[Wayfinder? &startId=`32`  &rowTpl=`marqueTpl` &rowIdPrefix=``]]


        Philippe