We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16550
    • 23 Posts
    I’m tring to built a friendly webuser interface for my website. And for this i’ve tried to integrate the last articles, pictures or travelbook of each of my users. I found webloginpe very interesting (thanks to all of you) .
    My problem:
    when i use ditto or another snippet in the templates of webloginpe, modx displays the text of the snippet: [?ditto! ...] instead of the result of the call.

    I guess this is a problem of using a snippet in a php language programm. Do you have any idea to help me.
    is it possible to do that?

    Thanks,
      • 28033
      • 925 Posts
      Are you running Ditto cached, [[, or uncached, [! ?

      Uncached will output the calls literally, if the WLPE/etc. stuff is called uncached. You’ll either need to run Ditto cached, or uncached and WLPE/etc. cached.

      IIRC, it’s a MODx 0.9.6.x known flaw/bug that’s already fixed for the v2.0.0 branch. wink
        My Snippets
        -> PopUpChunk v1.0
        • 16550
        • 23 Posts
        It Works fine

        Thanks very much indeed, Soshite and sorry for such a basic question but i didn’t find any answer elsewhere...
        wink

        Actually i was working uncache : [! ? and i switch ti cache [[ ...OK Perfect
          • 7231
          • 4,205 Posts
          It is not a bug, more like a characteristic of how the parser works in Evolution (096x). The dynamic data used as variables in snippet calls need to be parsed before the snippet gets processed. Basically parsing certain data on the first pass then subsequent data in the following passes.

          If you haven’t already done so, check out this series of ongoing articles for some good insight on how MODx works, there is some interesting information on the parser.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]