We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6531
    • 154 Posts
    I need to insert the title of the parent document in the current document.

    I tried using the GetField snippet, but I can’t get it to work at all. I created the snippet, and copied the .inc.php to
    [tt]/assets/snippets/getfield/getfield.inc.php[/tt]

    But when I call it, it returns nothing. I don’t even know how to troubleshoot it.

    Calling it with
    [tt][!GetField? &parent=`1`!][/tt]

    Also tried
    [tt][[GetField? &parent=`1`]][/tt]

    How do I solve this? Is there an alternative to getField?
      • 7455
      • 2,204 Posts
      did you resd how it works?

      you need to set the docid and the field you want to get, so no parent=`1` but &docid=`[*parent*]` and &field=`pagetitle`
        follow me on twitter: @dimmy01