I am running Revo RC-2 and was doing some tests with getResources 1.0.0-ga snippet. I was trying to create a simple test link using MODx Tags and getResources placeholders.
This was my sample chunk/template:
<h3><a href="[[~[[+id]]]">[[+pagetitle]]</a></h3>
<p>[[+description]]<br/>
<small>Edited: [[+editedon]]</small>
</p>
<hr/>
In the
href attribute above, notice I was missing the fourth "
]".
This was my output:
Quote from: "RC-2
<h3><a href="/modx/?filter_commands=Array&filter_modifiers=Array</small>
</p>
<hr/>
Iām not sure what I expected the output to be, empty space or a single "]", I suppose. Definitely seemed a bit off...notice how it truncated everything between the missed tag down to the last placeholder in the template.
By adding the fourth "
]", my output come through exactly as intended:
Quote from: "RC-2
<h3><a href="/modx/">Home</a></h3>
<p>
<small>Edited: 2010-05-27 19:35:46</small>
</p>
<hr/
Here is my getResources snippet call:
[[!getResources? &debug=`0` &parents=`0` &depth=`1` &limit=`10` &sortby=`createdon` &tpl=`resource_tpl`]]
NOTE:
- My site is running RC-2 in a sub-directory called "modx".
- I am running CentOS 5.4, Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.0 mod_bwlimited/1.4 PHP/5.2.13 MySQL 5.1.45
- I could not find a dedicated 1.0.0-ga thread and I am not sure if this issue is specific to RC-2 or the snippet itself...
Any thoughts?