We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17716
    • 16 Posts
    Hum... sorry for getting here for that, but I’m quite tired now (heavy night) and don’t manage to clear this little case alone.
    I just want to list the docs contained in the container have 3 as id for a listing page. undecided

    Listing page code:
    [[Ditto?parents=`3`&depth=`1`&tpl=`BlogList`&display=`1`&filter=`hidemenu,0`&sort_by=`pub_date`]] [[$BlogList]] 
    


    "Bloglist" Chunk code :
     <a href="[[~[[+id]]]]">[[*longtitle]]</a> 
    
    [[*content]]
    


    The page just gets me a network error: but the script shouldn’t need that many resources that it overwhelms the allowed memory!
    As everything else work like a charm, I can’t blame the beta nature of 0.9.7: it would be too easy. rolleyes

    I so must be messing here, but were I’m screwing? huh
    • Maybe it should be [[+content]]. [[*content]] will give you the content of the page being served, the page with the Ditto call on it... so you’re asking Ditto to display the content of the page you are calling Ditto on which contains the Ditto call asking for the page that contains the Ditto call... infinite loop shocked shocked
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 17716
        • 16 Posts
        Thanks for the comment !
        I in fact put it his way as a try ... and then forgot. (should sleep)
        Now I’m back to y previous issue getting :

        One of your Ditto templates are missing placeholders, please check the template below:
        _________________________

        <a href="index.php?id="></a>
        _________________________

        (I hopefully checked the HTML before shouting "what the heck, damn blank details")

        Any clues? Otherwise I will get back to hit after a nap, if I manage to (too damn hot)

        • I would presume your template should have had [[+id]] in it to set up the link properly. Something like [[~[[+id]]]] or whatever the equivalent of [~[+id+]~] would be in 097.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 17716
            • 16 Posts
            Hi Sottwell and thanks for the comment.

            If you are speaking of the chunk "template", I don’t really get it since I already have "<a href="[[~[[+id]]]]">[[+longtitle]]</a>".

            Having just [[+id]] just lead to :
            One of your Ditto templates are missing placeholders, please check the template below:
            _________________________
            
            <a href="index.php?id="></a>
            _________________________
            


            The funny thing is even if I simply the chunck code to simpy the content (i.e. just "[[+content]]") it give me the same error, with nothing in :
            One of your Ditto templates are missing placeholders, please check the template below:
            _________________________
            
            
            _________________________
            

            Going to sleep now
            • First, which Ditto are you using? FWIW, Ditto did a lot of custom template parsing due to limitations of the legacy MODx parser. It is very likely that it needs a lot of TLC to work with all it’s features in the new core/parser.
                • 17716
                • 16 Posts
                Tanks Jason for the split from the original thread (or whoever did it grin).
                I wasn’t expecting the topic to need that much originally.

                I’m currently with ditto-1.0.2-beta1 running on a 1 month checkout of the svn.  rolleyes

                I guess I should go more in details coding some small snip before trying to move such cruise boat like ditto without more experience with 0.9.7.
                I was just innocently hoping that it will just go smoothly as it was already available as a transport package without additional docs.

                I’ll try to go more beneath the edge this week end, but first step will be to reinstall it all since I’ve seen quite important commits on FishEye.
                • Since this is a port of 1.0.2 version of Ditto, I think some of the parameters you are using need to be changed. For instance, parents is a fairly new parameter change to Ditto 2.0.x is it not?
                    • 17716
                    • 16 Posts
                    So.. ok !
                    I haven’t noticed that the ditto available for 0.9.7 was a so early one.

                    I haven’t managed to downgrade my test to make it work : I guess I’ll have to get back to basics.

                    Being currently tempted to just make a small list script (which is mostly what I need now), should I pursue taking time on something which will be upgraded the sooner or the later....?

                    What o you think?
                    • Working up a simple listing snippet would be a very good way to get experience in working with 097. And such a snippet would also be a welcome addition to many user’s libraries, as not everybody needs a full-blown Ditto all the time, and Wayfinder can’t always be used for all listing needs.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org