I’m writing a custom snippet and I need to get the pagetitle of the parent resource from the ID which is stored in
I only found how to get the parent of the current resource but not how to make it use my variable
$resource and find the parent of that:
$parent = $modx->resource->getOne('Parent'); return $parent->get('pagetitle');
I’m new to creating custom snippets but I hope there is a simple solution to this.