Почему parent первого уровня = 0
Почему parent первого уровня = 0?
Потом сделал условие [[*parent:is=`0`:then=`[[!++site_url]]`:else=`[[!++site_url]][[~[[*parent]]]]`]]
Почему возвращает ошибку?
возвращает [2019-02-25 14:47:49] (ERROR @ ...modx.class.php: 1043) `0` is not a valid integer and may not be passed to makeUrl()
[2019-02-25 14:47:49] (ERROR in resource 51 @ ...modparser.class.php: 1374) Bad link tag `[[~0]]` encountered
?
0
Потом сделал условие [[*parent:is=`0`:then=`[[!++site_url]]`:else=`[[!++site_url]][[~[[*parent]]]]`]]
Почему возвращает ошибку?
возвращает [2019-02-25 14:47:49] (ERROR @ ...modx.class.php: 1043) `0` is not a valid integer and may not be passed to makeUrl()
[2019-02-25 14:47:49] (ERROR in resource 51 @ ...modparser.class.php: 1374) Bad link tag `[[~0]]` encountered
?
Комментарии: 0