-
- 360 Posts
It would be nice if there were an easier way to do things, and they worked correctly, when it comes to comments. It’s always been the most frustrating part of MODx.
I’m trying to display comments output in a different order in 1.02.
I’ve set the &placeholder=`1` and &output=`0`
with this call:
<div id="commentsAnchor">
[!Jot? &customfields=`name,email` &subscribe=`1` &pagination=`4` &badwords=`dotNet` &canmoderate=`Site Admins` &placeholders=`1` &output=`0` !]
</div>
[+jot.html.navigation+]
[+jot.html.comments+]
[+jot.html.moderate+]
[+jot.html.form+]
But I’m getting nothing. How do you re-arrange the output. I thought I was following the info in the Wiki, but...
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com
If you have the PHx plugin installed you cannot use placeholders (they still work within snippet tpls, such as those used by Ditto, Wayfinder and Jot, since they are processed by the snippet and not by the MODx parser).
This is because PHx has its own "garbage collection" functionality that removes all unused placeholders before the point where MODx will run cached snippets.
There are two solutions. One is to use uncached documents and call Jot uncached. The other is to use a snippet to retrieve the placeholder using $modx->getPlaceholder("name") and return it through the snippet. Only the placeholder tags in the document’s content are removed by PHx, not the actual values from the $modx->placeholders array.
-
- 360 Posts
Thanks, Susan
Is there in way to go into the HTML/php template files and rearrange them? I can’t figure it out. I was able to that on older versions.
There are no boring projects. Only boring executions. ~ Etzkorn
www.impress-design.com