On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hello,

    I use Evo 1.0.5 and installed YAMS http://modx.com/extras/package/yams.

    On every page I display its sub-pages with dito:
    [[Ditto? &parents=`[*id*]` &id=`(yams_id)` &language=`(yams_mname)` &sortBy=`menuindex` &sortDir=`ASC` &tpl=`sub_pages` &extenders=`@FILE assets/modules/yams/yams.extender.inc.php` ]]

    This works great, I display the content with my chunk sub_pages:
    <h1>[+#longtitle+]</h1> [+#content+]

    When I put a # before the variable like #longtitle, I tell the Quickmanager+ (v.1.5.5) that I want to edit the parts like longtile or contentfor every iteration of ditto.

    Ditto parses correct and I see Links beside longtitle and content to edit it directly. When I click on it, the popup for editing opens and a I see only the error "No record found for id 0".

    Has someone experience with this combination and scenario?

    • Unfortunately you can't edit individual template variables from other pages (eg. Ditto listings).

      But you can do this with Ditto iteration:
      <!-- qm-edit [+id+] 'Edit item' -->

      This opens the page editing modal box.
        Mikko Lammi, Owner at Maagit
      • Thank you, my chunk looks like this now:

        <div class="text"> <!-- qm-edit [+id+] 'Edit item' --> <h1>[+longtitle+]</h1> [+content+] </div>

        I cleared the cache but no "Edit item" show in front of the headline, nothing inside the HTML Code, did i miss something?

        • Check QM+ plugin configuration: is "Inline edit buttons" true?
            Mikko Lammi, Owner at Maagit
          • Thank you!