We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23050
    • 1,842 Posts
    Mmmh, you’re right ! It’s ok wink Thank you
      • 1511
      • 144 Posts
      Is it possible to get a clickable list of tags for a specific article?

      When Ditto creates the summary list, I display the clickable tags with [+tags+] in ditto_template.

      When opening the article document, it has a "JotComments" chunk call at the bottom (since my Ditto call has a "&footertpl=`JotComments`" parameter ).

      I would like to output the clickable tags once the document is displayed, so I figured I could add a Ditto call in the JotComment chunk.

      How can I achieve that?
      Can Ditto do that? Any other way?
        • 23050
        • 1,842 Posts
        It seems that Reflect misses some HTML elements to close ul lists. On line 203, I changed

        	$output .=  '</ul>'."\n\n";

        into
        	$output .=  '</ul></li></ul>'."\n\n";


        Also, to pass W3C validation, you need, on line 133, to change &year into &amp;year
          • 28221
          • 18 Posts
          Hello,

          A have a noob question. How to use Reflect with ditto?
            • 23050
            • 1,842 Posts
            Quote from: spoof at Nov 20, 2006, 06:30 AM

            Hello,
            A have a noob question. How to use Reflect with ditto?

            Hello, all you have to do is call [[Ditto? ]] in your page, and then [[Reflect? ]]
            Works perfect but don’t forget to correct the error Heliotrope mentioned here

            Be sure Reflect snippet is created too. You can find the code in Ditto 1.1 beta 2 package wink
              • 23050
              • 1,842 Posts
              Some questions about Reflect :

              - How can I change the language used to display month ? It outputs November, and I look Novembre in french

              - If I use [[Reflect? &dateSource=`pub_date` &dateFormat=`%d-%b-%y`]], the [+date+] displayed in the tpl[items] span is createdon. So, months to buid the archive is ok but inside parenthesis, it’s the createdon date and not pub_date date. Am I cleared ? huh
                • 11975
                • 2,542 Posts
                here is a quick fix to the date issue.

                change the Line 191 of reflect snippet:

                		if ($showItems) $output .=  '<li class="reflect_item">'.$ditto->render($resource[$i], 2, "html", "createdon", array("default"=>$archive['item']), $dateFormat, $debug)."</li> \n";
                


                to

                		if ($showItems) $output .=  '<li class="reflect_item">'.$ditto->render($resource[$i], 2, "html", $archiveDateSource, array("default"=>$archive['item']), $dateFormat, $debug)."</li> \n";
                


                Hope that helps.

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 28221
                  • 18 Posts
                  Quote from: Perrine at Nov 20, 2006, 07:17 AM


                  Hello, all you have to do is call [[Ditto? ]] in your page, and then [[Reflect? ]]
                  Works perfect but don’t forget to correct the error Heliotrope mentioned here

                  Be sure Reflect snippet is created too. You can find the code in Ditto 1.1 beta 2 package wink
                  Thanks

                  But it still not works and writes "Bad ditto object" even if i use "&startID=`43`" in Ditto and with/without id=`bignews` (that id Ditto has). Don’t know where is a problem.
                    • 23050
                    • 1,842 Posts
                    When using Ditto and Reflect together, if Ditto can’t find any entry (no entries found), Reflect outputs "Bad Ditto object"... Better to not output nothing, right ?
                      • 28221
                      • 18 Posts
                      Quote from: Perrine at Nov 22, 2006, 09:02 AM

                      When using Ditto and Reflect together, if Ditto can’t find any entry (no entries found), Reflect outputs "Bad Ditto object"... Better to not output nothing, right ?

                      Yeah, it happens when i use ditto and reflect on the same page. I have a template with [*#content*] and have a page with:
                      <div>
                      [[Ditto? &tpl=`ditto_news_page` &dateFormatType=`pub_date` &sortBy=`pub_date` &summarize=`5` &dateFormat=`%d.%m.%Y` &startID=`43` &paginate=`1` &id=`bignews`]]
                      </div>
                      <div id="pagination">
                      Pages: [+pages_bignews+]
                      </div>
                      [[Reflect? &dateSource=`pub_date` &dateFormat=`%Y`]]
                      


                      And that code doesn’t work :/ Reflect always writes "Bad Ditto Object"