EDIT: Solved: See end of post.
------------
I’m sure I’m just missing something obvious, but I’ve been sitting for several hours trying to figuring this out:
I want to display the name of the parent folder (the folder the post belongs to) in a listing of recent published documents. But there is no document object for "parentpagetitle" which I can put in as a placeholder.
Tried to create my own placeholder in a snippet (my first snippet

) by using $modx->getParent and setPlaceHolder which worked fine, but that was stupid! It just looks up the parent page title of the page I’m calling from, and not the parent title for the rows (listed documents).
Ok, don’t tell me how stupid I am, just give me a hint how to do this

I just started building my first real site with MODx, and it’s easy to miss something obvious. And right now I’m really tiered, have been studying PHP for many hours today, before my petty attempts with MODx! It’s late here!
Thanks!
EDIT: Solved:
My (first one ever) snippet worked:
$title = $modx->getParent($id,1,’pagetitle’);
return ($title[pagetitle]);
Called my snippet with [[snippetname? &id=`[*id*]`]]
Just didn’t know that calling a snippet is like calling a function. When I put in "return" in my minimal snippet it worked! Wow, now I understand how easy MODx is to work with! Been working with an old Mambo site for the last week, everything there is very hard to customize!
Next thing is to figure out how to make a placeholder that is accessible for my chunks, but thats another story and not for this thread.
I realize there is ready made snippets for retrieving other documents info with better functionality, but this works for me!
:)