-
- 708 Posts
Could you post the entire modified code?
It does show the resource name, but it's still the name of the results page.
Todd
discuss.answer
-
- 24,544 Posts
<?php
$fields = array('name' => 'parent');
$docId = (int) $modx->runSnippet('getUrlParam', $fields);
$query = $modx->newQuery('modResource', $docId);
$query->select('pagetitle');
return $modx->getValue($query->prepare());
Do the placeholder like this, for now, to make sure you're looking in the right place for the snippet's result:
XX[[!GetTitle]]XX
-
- 708 Posts
Now it works.
Thanks, Bob
Todd
-
- 24,544 Posts
You're welcome.