We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27285
    • 29 Posts
    Sorry because of my post, but I can´t find the mistake:

    [!Ditto? &startID=`92` &summarize=`4`&sortDir=`ASC` &tpl=`DittoTemplate` &dateFormat=`%d %B %y` &truncText=`More` &paginate=`1` &increment=`4` &filter=`!=MPC` !]


    I want that Ditto only shows the documents containing "MPC"...
      • 3984
      • 22 Posts
      Quote from: Mark at Jul 18, 2006, 08:45 AM

      Tutorial:

      1. Create a folder. Note its ID.

      2. Create numerous documents within this folder.

      3. On either a separate page or the folder insert a Ditto call like so:

      [[Ditto?startID=`IDofFolder`]]
      


      Thats it! You can use any of the parameters to alter the output to your liking. A full reference is available in the Documentation > Core Snippets > Ditto section of the MODx CMS site.

      Lol, get this. My snippet was broken, had everything bar the last line, ie
      return $output;
      . Now off to check out the various parameters. Hoping to do a blog, possibly tagged as well (with RSS feeds and the like). Thanks for the reply though, but at least I feel better knowing that I had been doing the right thing all along.
        • 18397
        • 3,250 Posts
        @ur001: Tillda suggested a simple fix here for that issue http://modxcms.com/forums/index.php/topic,5344.msg40314.html#msg40314.

        @Braininator: Glad to hear you got it working!

        @simon79:  First off, there is no parameter increment and second your &filter should look like this:

        &filter=`tvFilter,MPC,!=` 
        
          • 27285
          • 29 Posts
          Hi Mark!


          Thanks for your quick reply! smiley

          I still have problems creating a tv that works! Who can tell me how to create a tv "Filter", which can be used with (in) Ditto and only outputs (used as Filter) the selected word?
            • 33101
            • 46 Posts

            When I want to use pagination like at www.modxcms.com/blog.html where do I put the pagination placeholders (the html to format how I want the [prev, pages, next] links to look)?

            Thanks,
              • 18397
              • 3,250 Posts
              You place them anywhere on the page where you called Ditto. This could be in the template for that page or in the document content.
                • 3984
                • 22 Posts
                XML Parsing Error: junk after document element
                Location: {Site URL}
                Line Number 9, Column 5:    <div class="ditto_summaryPost">
                ----^


                with the Ditto call

                [[Ditto? &startID=`2` &format='rss']]


                This was done trying to get the RSS Feeds in the sample site to use Ditto rather than the old snippet. Any thoughts?
                  • 22815
                  • 1,097 Posts
                  1) Remember to use backticks!
                  2) Remember that backticks are actually optional...

                  So if you use ’ instead of `, Ditto will think you meant`’rss’` rather than `rss`.

                  A similar call works fine for me.
                  [[Ditto? &startID=`51` &summarize=`5` &format=`rss`]]
                    No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
                    MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                    Forum: Where to post threads about add-ons | Forum Rules
                    Like MODx? donate (and/or share your resources)
                    Like me? See my Amazon wishlist
                    MODx "Most Promising CMS" - so appropriate!
                    • 18397
                    • 3,250 Posts
                    Thank you Paul, couldn’t have said it better myself.
                      • 3984
                      • 22 Posts
                      Cheers Paul and Mark. A simple mistake that I blame on a little thing called 1am smiley

                      This discussion is closed to further replies. Keep calm and carry on.