We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21779
    • 5 Posts
    Hey guys, what i’m doing wrong here? summary is not working!

    Chunk: story_summary

    <div id="blogpost">

    <a href="[~[+id+]~]" class="blog_headline">[+title+]</a>

    <span class="blog_date">Published: [ [+date+] ]</span>

    <p>
    <div class="blog_content">[+summary+]</div>
    </p>

    <p><a href="[~[+id+]~]">More &gt;&gt;</a></p>

    </div>

    And my call..

    [!Ditto? &parents=`1`&sortBy=`createdon`&summarize=`5` &total=`5`&tpl=`story_summary`!]
      • 11975
      • 2,542 Posts
      Hi,

      to display the summary placeholder in your tpl, you have to use ditto extenders
      =>http://ditto.modxcms.com/extenders.html

      add to you ditto call &extenders=`summary`

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 21779
        • 5 Posts
        Quote from: heliotrope at Feb 20, 2009, 04:56 AM

        Hi,

        to display the summary placeholder in your tpl, you have to use ditto extenders
        =>http://ditto.modxcms.com/extenders.html

        add to you ditto call &extenders=`summary`

        :-)


        ahh, sweet! Now its showing.. Thanks!

        Updated call:
        [!Ditto? &parents=`1`&sortBy=`createdon`&extenders=`summary`&summarize=`5`  &total=`5`&tpl=`story_summary`!]

        However in is only showing 1 line of text in my first article, 2 lines in second article and 3 in third article.. wierd

        ?? laugh am i suppose to replace "&extenders" with something?
          • 21778
          • 223 Posts
          This is driving me nuts! Im working on a project to learn modx so i’m still a little clueless...

          Sorry if the problem above is obvious.
            • 7231
            • 4,205 Posts
            However in is only showing 1 line of text in my first article, 2 lines in second article and 3 in third article.. wierd
            That is weird! Could there be something in the formatting of the content that is being summarized? Check the HTML output for broken image tags something that is ’invading’ the content. I don’t remember if the summary included tags html tags or not.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don&#39;t know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 21778
              • 223 Posts
              Its stripped down to plain text, so there shouldn’t be any broken things there.

              The Ditto call is written in document content, would it be better to make it part of the template?

              Maybe i should try introtext instead of summary, don’t know how to do it though =)
                • 3749
                • 24,544 Posts
                Try putting a space before every & in the Ditto call.

                Another thing to try is to explicitly set the truncation point in the Ditto call.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 21778
                  • 223 Posts
                  Quote from: BobRay at Feb 21, 2009, 05:47 PM

                  Try putting a space before every & in the Ditto call.

                  Another thing to try is to explicitly set the truncation point in the Ditto call.


                  spaces dosent change anything, if i use "&trunc=`1`" nothing changes but if i use "&trunc=`0`" its shows the entire articles in summary.

                  Whats dose this call do`? "&summarize=`5`"
                    • 3749
                    • 24,544 Posts
                    Try taking &summarize=`5` out and replacing it with

                    &total=`5`

                    AFAIK, Ditto 2.x has no summarize parameter.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 21778
                      • 223 Posts
                      Quote from: BobRay at Feb 23, 2009, 03:09 PM

                      Try taking &summarize=`5` out and replacing it with

                      &total=`5`

                      AFAIK, Ditto 2.x has no summarize parameter.

                      Still nothing sad(

                      link to page: http://www.norlins.dk/uchihaproject/

                      ditto call:

                      [!Ditto? &parents=`1` &sortBy=`createdon` &extenders=`summary` &total=`5` &tpl=`story_summary`!]

                      story_summary:

                      <div class="newsitem_top"></div>

                      <div class="newsitem_main">
                      <a href="[~[+id+]~]" class="blog_headline">[+title+]</a>

                      <span class="blog_date">Published: [ [+date+] ]</span>



                      <div class="blog_content">[+summary+]</div>

                      <a href="[~[+id+]~]" class="blog_more">More...</a>
                      </div>

                      <div class="newsitem_down"></div>