We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    Hello

    is it posible to use a snippet cal inside the ditto template?

    i like to call one image from a gallery using my own snippet. this did not work:

    <td><a href="[+id+]">[!pakHoofdbeeld? &thumb=`1` &paginaid=`[+id+]`!]</a></td>
    it gave me the same call on the screen like this:
    [!pakHoofdbeeld? &thumb=`1` &paginaid=`[+id+]`!]
    
    
    and this gave me nothing the call was gone:
    <td><a href="[+id+]">[[pakHoofdbeeld? &thumb=`1` &paginaid=`[+id+]`]]</a></td>
    

    maybe it is not posible at all?

    in eform template something like this works fine
      follow me on twitter: @dimmy01
      • 14050
      • 788 Posts
      If you are using the unchached called to the snippet [!pakHoofdbeeld!], make sure your ditto call is cached as [[ditto]], right now if you have nested calls, they have to alternate cached, uncached, cached. If that doesn’t work, try reversing that to unchached, cached, uncached, etc.

        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 7455
        • 2,204 Posts
        it does not work I tried all possible combinations
          follow me on twitter: @dimmy01
          • 18397
          • 3,250 Posts
          There is a working example in the default content as Ditto is calling Jot in the nl_blog TPL on the blog page
            • 7455
            • 2,204 Posts
            Quote from: Mark at Feb 12, 2007, 11:49 AM

            There is a working example in the default content as Ditto is calling Jot in the nl_blog TPL on the blog page

            Man I feel stupid. made a stupit typo in the snippet I made man.. ok it works now.
              follow me on twitter: @dimmy01