Last active
November 4, 2018 02:04
-
-
Save ru2fac/5a63ae8db87d36721dc7e8e2d5a72dcc 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 | |
if ($thread = $modx->getObject('TicketThread', array('resource' => $id))) { | |
echo $thread->get('comments'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create snippet called "TicketCommentsCount"
[[!TicketCommentsCount? &id=
[[*id]]
]][[!TicketCommentsCount? &id=``]]
[[!TicketCommentsCount? &id=
2
]][[!TicketCommentsCount:default=`0`? &id=`[[+id]]`]]