We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10573
    • 101 Posts
    I’ve been playing with the demo

    [[Ditto? &startID=`2` &summarize=`1` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`date,summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]


    If the &summarize=`1`

    How do I get it to show all the pages with the tag I clicked?

    For example, in the demo, there are two example blog posts. They both have the tag "demo"

    With the above call, when I click on the "demo" tag, it still shows the first article: Mini-Blog HOWTO.

    The reason why I ask is because I want to show all the pages with the tag when clicked, even though I only want one summarized on the page.
      • 18397
      • 3,250 Posts
      @gcruz: 0.9.6RC1 ships with Ditto pre-RC2 so make sure you upgrade! (Then remove the date extender as it no-longer exists)
        • 10573
        • 101 Posts
        Thanks, I updated.
        Removed the date extender and it seems to work.

        I’m still trying to figure out how to have 1 summary on my blog. Then be able to click on a tag and show all the summaries with that tag.

        As I stated above, it only shows one.

        It works when I put more than 1 in the summary, but then I don’t have a solo post.
          • 18397
          • 3,250 Posts
          Thats easy. You create a new document called tags landing with the same call except for summarize. Note its ID. Then you append &tagDocumentID=`that ID` to the first call and volia, exactly how you describe it.
            • 10573
            • 101 Posts
            Close, but I seem to be having a problem. I know the example uses a text list, but having to type in tags can lead to user error vs, checking a box. Plus I’m trying to retrofit the tags I used from the previous solution.

            I have a comma delimited checkbox tag list in my TV called "tags"

            On my home page, I have this call
            [[Ditto? &startID=`1` &summarize=`1` &total=`all` &dateFormat=`%a, %B, %d, %Y %I:%M%p` &removeChunk=`Comments` &tpl=`nl_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` &tagData=`tags` tagDelimiter=`,` &tagDocumentID=`2`]]


            On my Landing page (2), I have this call:
            [[Ditto? &startID=`1` &dateFormat=`%a, %B, %d, %Y %I:%M%p` &removeChunk=`Comments` &tpl=`nl_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` tagDelimiter=`,` &tagData=`tags`]]


            It only works when one tag is selected?

            The tags list fine.

            As soon as I click on a tag, the landing page only works if the post only has one tag "demo" (it shows both posts)

            But if I add another tag onto the second post, let’s say "miniblog" in addition to "demo"

            When I click on the "demo" tag from the home page, it only shows the post with 1 tag?

            As soon as I remove "miniblog" from the second post, they both appear in the landing page?

            I noticed if I hover over the post with two tags, both tags highlight?

            It looks like it is combining the tags?
             <a href="/modx/index.php?id=2&start=1&tags=blog,miniblog" class="ditto_tag" rel="tag">blog,miniblog</a> 


            Shouldn’t they be separate links for each tag?
              • 33337
              • 3,975 Posts
              Quote from: rthrash at Mar 06, 2007, 01:59 AM

              Great job Mark. The documentation is really helpful and well-formatted. laugh

              DITTO! gonna spare some time to read it and finally upgrade me wink

              thanks man! and keep up the great work.
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 20751
                • 122 Posts
                Mark

                PM’d you again with a few clues as to why pagination may not be working. Thanks!
                  • 20751
                  • 122 Posts
                  Hi

                  Been having some trouble with getting pagination to work with RC2 and RC3 which mark has kindly been helping me with. I’ve had a bit of a breakthrough but can’t understand the cause!

                  I’ve managed to get most of the pagination working but the [+current+] placeholder no longer works. I don’t see it being set as a placeholder in ditto/ditto.class.inc.php either. Is this placeholder no longer valid?

                  I’ve discovered that if I disable the PHx plugin, the pagination works fine, however if I enable the plugin then pagination dissappears completely. Pagination also doesn’t work if you simply use the &phx=`0` paramater while the PHx plugin is enabled.

                  Can anyone work out why this is happening?

                  Here’s my ditto call and placeholders:

                  [!Ditto? &debug=`1` &idType=`parents` &parents=`36` &phx=`0` &tpl=`yourissues` &paginate=`1` &paginateAlwaysShowLinks=`1` &summarize=`2`!]
                  Page [+current+] of [+total+] Articles [+previous+] [+pages+] [+next+]


                  Finally, since upgrading to RC3 the debug console comes up with a ’page not found’ error.

                  Thanks! This is hard work, but I’m loving it!



                    • 11975
                    • 2,542 Posts
                    I’ve experienced the same issue with PHx

                    As a work around you can call your snippet cached [[

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 999
                      • 67 Posts
                      Hi Mark,

                      I found some spurious bugs while working with the latest Rc2 & Rc3 releases.

                      a) When the tpl used contains the "-" character, for example &tpl=`Ditto-MyTemplate-Test` it causes my server to crash entering a race condition, and im talking about a mediatemple DV server.

                      b) i found that in the documentation, in the filter parameters, equality is refered as 2, but when i try to make filters work equality is 1.

                      Thats all for now.
                      Alex.

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