We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12410
    • 353 Posts
    Hi Guys,
    when i include [[*pagetitle]] in the newslink1 chunk only the parent titles are shown. Any way to get the child titles to show. The associated links [[~[[+id]]]] strangely point to the child which makes it weirder. Hmmmmmm - Getresources calls the child links fine but need getpage to work
    Thanks


    [[[!getPage?
       &elementClass=`modSnippet`
       &element=`getResources`
     
       &parents=`29`
       &depth=`2`
       &limit=`10`
       &pageVarKey=`page`
     
       &includeTVs=`1`
       &includeContent=`1`
     
       &tpl=`newslinks1`
    ]]



    Chunk
    <a href="[[~[[+id]]]]"><a href="[[~[[+id]]]]">[[*pagetitle]]<img src="[[+tv.newsthumb]]" width="350" height="233" border="0" /></a>



      • 3749
      • 24,544 Posts
      Try [[+pagetitle]].

      Using [[*pagetitle]] will always give you the title of the page containing the snippet tag.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 12410
        • 353 Posts
        Yep that worked. Thanks

        The syntax got me all confussed and muxed up! smiley