•Try•
Catch

Parent Title

Fetch a MODX Resource's Parent Title

A simple snippet that return a resource's parent title if found and gracefully return null otherwise.

<?php
try {  
return $modx->resource->getOne('Parent')->get('pagetitle');
}  
catch (Exception $e){}  
return;

Comments (0)


Add a Comment





Allowed tags: <b><i><br>Comment:


** Get the Parent **

modmore