We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6316
    • 92 Posts
    Is it possible to make +summary+ longer than 8 sentences?
      • 23050
      • 1,842 Posts
      I think you can, using these parameters :

      $length = isset($truncLen) ? $truncLen : 300;
          // how many characters to show of blogs
      
      $offset = isset($truncOffset) ? $truncOffset : 30;
          // how many characters to show of blogs
        • 18397
        • 3,250 Posts
        Ok, the template bug and a few others should now be fixed:

        Since this is a "In Development" thread, might as well make the new HEAD auto tarball URL public:

        Here you go folks: https://svn3.cvsdude.com/wsvn/ditto/wsvn/codebase/trunk//?op=dl&rev=0&isdir=1

        That should give you a tarball (tar.gz) file of the trunk contained in a container folder called oh so originally trunk

        As usual, let me know if there are any issues.

        Thanks to those of you who posted in the bug tracker! Makes my life alot easier. smiley
          • 16732
          • 592 Posts
          try the new SVN version ... always nothing when I’m using &extenders=`request` ... I must keep the old RC2 version for my client site :’(
            • 18397
            • 3,250 Posts
            For the request extender, are you using ditto_id_varname syntax if you have a Ditto id set?
              • 16732
              • 592 Posts
              Hi Mark,

              mmm... I don’t know if I really understand your question...For the moment I’m trying to make working what I have done with one Ditto call wink... so I don’t use the &id param... do I have ?

              Is that you are asking me ?

              All of what I’m using is mentioned here : http://modxcms.com/forums/index.php/topic,12204.msg82056.html#msg82056 ... I you need more specific infos tell me.

              The request extender is great, but I’m a bit confused in how to use it correctly

              PS: Sorry fort my bad english embarrassed


                • 11975
                • 2,542 Posts
                Hi Mark,

                there is something weird with the new version wink

                Make the following test:
                set &parents=`0` will return an error

                PHP error debug
                Error: array_values(): The argument should be an array
                Error type/ Nr.: Warning - 2
                File: /Users/dissixfactory/Sites/modx-0.9.5/assets/snippets/dittorc2/classes/ditto.class.inc.php
                Line: 447
                Line 447 source: $resource = array_values($resource);

                Now try with
                &parents=`0,`
                The snippet runs fine

                This error has come with the RC2

                Any Idea ?
                Thx for your work

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 18397
                  • 3,250 Posts
                  @helio: Try the latest SVN head from a few minutes ago. Should fix that issue.
                    • 22563
                    • 63 Posts
                    Hi,

                    after an upgrade of modx and ditto the summries are missing on my blog pages.
                    Any changes took place?

                    I use
                    [!Ditto? &startID=`8` &tpl=`DittoTemplate` $summarize=`8` &showPublishedOnly=`1` &trunc=`1`  &truncSplit=`1` &paginate=`1` &paginateAlwaysShowLinks=`1` !]

                    and
                    <div class="ditto_summaryPost">
                    <h2><a href="[~[+id+]~]">[+title+]</a></h2>
                    <div class="small" style="width: 70%; text-align: right;">written by <span class="smalldark">[+author+]</span> on <span class="smalldark">[+date+]</span></div>
                    <div>[+summary+]</div>
                    <div class="bloglinks">[+link+]</div>
                    </div>
                      • 23050
                      • 1,842 Posts
                      Hi padexx,

                      To display summaries with 2.0, you have to define &extenders paramater in your Ditto Call : &extenders=`summary`

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