We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8779
    • 93 Posts
    I’ve the same problem. But I didn’t understand that explanation. I use ditto too to show up my news summary.
    Here is my ditto call

    [!Ditto? &startID=`1` &summarize=`3` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1`!]
    
    [+previous+] [+pages+] [+next+]


    So..
    How to add an image in the summary post?
    thanks
      • 33337
      • 3,975 Posts
      You need to use the custom template.

      Please see http://ditto.modxcms.com/tutorials/creating-a-custom-template.html
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 8779
        • 93 Posts
        This is my custom template

        <div class="score">  </div>
        
        	<div class="menu">HIGHLIGHT</div>
        	
        	<table width="100%">
        		<tr>
        			<td class="tittle"></td>
        			<td class="title"><img src="[+featuredimage+]" />[*#content*]</td>
        		</tr>
        		<tr>
        			<td class="content">
                               
        			</td>
        		</tr>
        	
        	</table>


        But the image didn’t appear on that [+featuredimage+]
        Am I missing something?
          • 8779
          • 93 Posts
          I think I can’t call the featuredimage with ditto.
          How to call it?

          I’ve add &hiddenFields=`featuredimage`
          But still, the thumbnail didn’t appear.
            • 33337
            • 3,975 Posts
            You should put this template in the chunk, and then call it in the Ditto call.

            eg. &tpl=`myCustomTpl` , where myCustomTpl is the chunk.

            Also, in the Ditto templates, always use the Placeholders eg. [+xyz+] instead of [*xyz*].
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 8779
              • 93 Posts
              It works grin
              But then another problem reveal. lol

              The div is looping when I use ditto template(chunk).
              And I separate them into real template and chunk

              In the real template, I put the HTML and CSS code.

              And in the chunk, I put only the table that should loop.
              This table
              <table width="100%">
              		<tr>
              			<td class="tittle"></td>
              			<td class="title"><img src="[+featuredimage+]" />[*#content*]</td>
              		</tr>
              		<tr>
              			<td class="content">
                                     
              			</td>
              		</tr>
              	
              	</table>


              But I can’t use the ditto template when I activate the real template.
              I call the chunk in the real template, but this is not working.

              Any solutions ?
                • 8779
                • 93 Posts
                And the another problem
                My content image show up when I call the ditto template.
                How to show only the summary text, not the real content. So the content image won’t appear.
                  • 8779
                  • 93 Posts
                  Quote from: elven_ranger at Jun 08, 2009, 09:15 PM

                  It works grin
                  But then another problem reveal. lol

                  The div is looping when I use ditto template(chunk).
                  And I separate them into real template and chunk

                  In the real template, I put the HTML and CSS code.

                  And in the chunk, I put only the table that should loop.
                  This table
                  <table width="100%">
                  		<tr>
                  			<td class="tittle"></td>
                  			<td class="title"><img src="[+featuredimage+]" />[*#content*]</td>
                  		</tr>
                  		<tr>
                  			<td class="content">
                                         
                  			</td>
                  		</tr>
                  	
                  	</table>


                  But I can’t use the ditto template when I activate the real template.
                  I call the chunk in the real template, but this is not working.

                  Any solutions ?

                  this problem is solved.
                  Now the second problem that I want to just show up the thumbnail and the text summary. How to do it?
                    • 8779
                    • 93 Posts
                    The second problem is solved too. Thanks for all of you.
                    Especially thanks to zi
                      • 30298
                      • 1 Posts
                      Hey,

                      Any chance someone could give me some more help with this. I’m very new to modx, only a few days in so I really need it broken down with each step.
                      I’m using Ditto also but have customised it a bit, just to specify what I want visible on the page.

                      Also if you could explain the actual theory behind it as well would be great. ie. if it’s finding a specific image for each blog entry (summary), where is it getting it from? Also how will this affect the client?

                      Ideally i’d like to be able to give a client a cms with maybe these blog fields among others:
                      Title
                      Description
                      Summary Image (upload form?)
                      Then the RTE editor for the main post content.

                      The page i’m playing around with is - http://thomasjmusic.com/ideas/modx/index.php?id=2 - is it helps at all.

                      Thanks
                      Tom