Created
August 5, 2020 10:26
-
-
Save Sentinel-7/00905ec73c31c28d254ec2b908e182aa to your computer and use it in GitHub Desktop.
Получаем уровень вложенности
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 | |
$parentPageId = $modx->resource->get('id'); | |
$level = count($modx->getParentIds($parentPageId)); | |
echo $level; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment