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

    when i generate an archive with Ditto, i always get an useless quotation mark in the url to the detail-page of the single news (as shown in the attached picture).



    Do anybody knows how this happens? huh

    Thanks, Alex
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Double-check your summary template.
        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
        • 1924
        • 119 Posts
        Hi Susan,

        what does it mean ’double check your summary...’?

        Kind regards, Alex
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          What does your Ditto call look like?
            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
            • 1924
            • 119 Posts
            Hi Susan,

            like this:

            [!Ditto? &startID=`40` &tpl=`meinArchiv` &emptyText=`Zur Zeit sind leider keine News im Archiv vorhanden - Bitte schauen Sie später noch einmal vorbei.` &sortBy=`menuindex` &sortDir=`ASC` &displayArchive=`1` &truncText=`weiterlesen ...` &trunc=`1` &truncAt=`</p>` &truncSplit=`1` !]


            kind regards, Alex
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Ok, take a long hard look at the code in the chunk named "meinArchiv". You will probably find that extra quote mark in there somewhere.
                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
                • 1924
                • 119 Posts
                Hi Susan,

                why should the archiv-chunk be responsible for any quotation mark. This makes no sense to me. ’meinArchiv’ looks like this:

                <div class="ditto_summaryPost">
                        [+summary+]
                </div>
                <hr />


                Maybee it could be bug in the class itself, cause the class generates the links/urls for the archive!??

                ???

                Kind regards, Alex