We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ā˜† A M B ā˜†
    • 1,056 Posts
    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&amp;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?
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: pixelchutes at May 27, 2010, 10:08 PM

      Any thoughts?
      Make sure your tags are correct?