Created
February 6, 2016 20:57
-
-
Save Drabush/6d6fad007838cad10da4 to your computer and use it in GitHub Desktop.
Show «parent name» snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Отображение названия родительской категории | |
//[[+parent:getThisField=`pagetitle`]] | |
$parent = $modx->getObject('modResource',$input); | |
$field = $parent ->get($options); | |
return $field; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment