<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building a Website with MODx for Newbies- Part 8: More Ditto</title>
	<atom:link href="http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/</link>
	<description>Programming blog - Discussions, Tutorials, Resources</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:49:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mary</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-12391</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Mon, 02 Jan 2012 00:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-12391</guid>
		<description>dave
I would need to take a look at your site to see what you mean.  How many Ditto calls do you have on the page?

mary</description>
		<content:encoded><![CDATA[<p>dave<br />
I would need to take a look at your site to see what you mean.  How many Ditto calls do you have on the page?</p>
<p>mary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-12200</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 20 Dec 2011 02:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-12200</guid>
		<description>Love the tutorial. I just put together my first pagination, but when i go to a second or third page result, my other Ditto feeds on that page disappear. Here is the command I&#039;m using: 

[!Ditto? &amp;parents=`8` &amp;tpl=`BlogTemplate` &amp;display=`3` &amp;paginate=`1` &amp;paginateAlwaysShowLinks=`0` !]

Is there a setting I can put in there to make my other Ditto feeds appear?</description>
		<content:encoded><![CDATA[<p>Love the tutorial. I just put together my first pagination, but when i go to a second or third page result, my other Ditto feeds on that page disappear. Here is the command I&#8217;m using: </p>
<p>[!Ditto? &amp;parents=`8` &amp;tpl=`BlogTemplate` &amp;display=`3` &amp;paginate=`1` &amp;paginateAlwaysShowLinks=`0` !]</p>
<p>Is there a setting I can put in there to make my other Ditto feeds appear?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-11581</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Mon, 25 Jul 2011 08:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-11581</guid>
		<description>Just insert the placeholder for your template variable where you want it, under the title placeholder and before the content.  You can wrap it in divs with an id of say &quot;main-image&quot; and then use CSS to style and position it accordingly.

Hope that helps
mary</description>
		<content:encoded><![CDATA[<p>Just insert the placeholder for your template variable where you want it, under the title placeholder and before the content.  You can wrap it in divs with an id of say &#8220;main-image&#8221; and then use CSS to style and position it accordingly.</p>
<p>Hope that helps<br />
mary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brahim</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-11578</link>
		<dc:creator>brahim</dc:creator>
		<pubDate>Fri, 08 Jul 2011 04:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-11578</guid>
		<description>thank you for the tutoriel. how can I add a small picture bellow the title. for exemple a template variable &#039;BookImage&#039;.</description>
		<content:encoded><![CDATA[<p>thank you for the tutoriel. how can I add a small picture bellow the title. for exemple a template variable &#8216;BookImage&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wesley</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-9464</link>
		<dc:creator>Wesley</dc:creator>
		<pubDate>Mon, 14 Jun 2010 23:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-9464</guid>
		<description>Thanks Mary. I&#039;ll dig into the Ditto documentation.

Cheers,
Wesley</description>
		<content:encoded><![CDATA[<p>Thanks Mary. I&#8217;ll dig into the Ditto documentation.</p>
<p>Cheers,<br />
Wesley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-9463</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Mon, 14 Jun 2010 14:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-9463</guid>
		<description>Wesley
Yes this is totally possible. To explain it in detail will take some time, but one easy way to do this is to use Ditto filters. You would need to add a filter to your Ditto call that would look at say the &quot;published on&quot; date, calculate back whatever number of days you want to show for, and then hide everything prior to that.  So for example, to show only the images published in the last 10 days you would add something like this to your Ditto call  - 
&amp;dateSource=`pub_date` &amp;filter=`pub_date,@EVAL return strtotime(&#039;-10 day&#039;);,3`

Basically, filters take the form &amp;filter=`field,criterion,mode`, and in the case of the example above the field is the published on field, the criteria is set using binding and a PHP statement to take the date minus 10 days, and the mode is 3 (&quot;less than the criterion&quot;).

You can read more about Ditto filters and see the different modes at http://www.pogwatch.com/ditto/ditto-filters.html

My friend Jan who helped me with this should be writing up a more detailed explanation soon, I will link to it here, but if you play around with the code above and read through the info about filters you should be able to string it up fine :)

mary</description>
		<content:encoded><![CDATA[<p>Wesley<br />
Yes this is totally possible. To explain it in detail will take some time, but one easy way to do this is to use Ditto filters. You would need to add a filter to your Ditto call that would look at say the &#8220;published on&#8221; date, calculate back whatever number of days you want to show for, and then hide everything prior to that.  So for example, to show only the images published in the last 10 days you would add something like this to your Ditto call  &#8211;<br />
&amp;dateSource=`pub_date` &amp;filter=`pub_date,@EVAL return strtotime(&#8216;-10 day&#8217;);,3`</p>
<p>Basically, filters take the form &amp;filter=`field,criterion,mode`, and in the case of the example above the field is the published on field, the criteria is set using binding and a PHP statement to take the date minus 10 days, and the mode is 3 (&#8220;less than the criterion&#8221;).</p>
<p>You can read more about Ditto filters and see the different modes at <a href="http://www.pogwatch.com/ditto/ditto-filters.html" rel="nofollow">http://www.pogwatch.com/ditto/ditto-filters.html</a></p>
<p>My friend Jan who helped me with this should be writing up a more detailed explanation soon, I will link to it here, but if you play around with the code above and read through the info about filters you should be able to string it up fine <img src='http://codingpad.maryspad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>mary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wesley</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-9455</link>
		<dc:creator>Wesley</dc:creator>
		<pubDate>Fri, 11 Jun 2010 17:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-9455</guid>
		<description>Thanks as always for the really superb tuts. Just great.

I have a question re: Ditto -- is it be possible to aggregate content that displays for a certain period of time? Specifically, I&#039;d like to use Ditto to create a &#039;recent images&#039; aggregation, and to make this list dynamic in as much as it will automatically include new images while discarding images that reach a certain age (i.e. that hit a prescribed time limit keyed off of the initial publish date).

I&#039;m just getting into MODx and still have a ton of reading to do, so apologies if this is something discussed elsewhere.

Thank again for this content -- it is very quickly making me a fan of MODx (and the coding pad)!</description>
		<content:encoded><![CDATA[<p>Thanks as always for the really superb tuts. Just great.</p>
<p>I have a question re: Ditto &#8212; is it be possible to aggregate content that displays for a certain period of time? Specifically, I&#8217;d like to use Ditto to create a &#8216;recent images&#8217; aggregation, and to make this list dynamic in as much as it will automatically include new images while discarding images that reach a certain age (i.e. that hit a prescribed time limit keyed off of the initial publish date).</p>
<p>I&#8217;m just getting into MODx and still have a ton of reading to do, so apologies if this is something discussed elsewhere.</p>
<p>Thank again for this content &#8212; it is very quickly making me a fan of MODx (and the coding pad)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike  Li</title>
		<link>http://codingpad.maryspad.com/2009/05/01/building-a-website-with-modx-for-newbies-part-8-more-ditto/comment-page-1/#comment-9392</link>
		<dc:creator>Mike  Li</dc:creator>
		<pubDate>Mon, 24 May 2010 02:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=760#comment-9392</guid>
		<description>Hi, Mary,

Thanks a lot for your nice work.

I have one question, i&#039;m using :
[!Ditto? ............ &amp;orderBy=`pub_date DESC`  !]
But i do not want to use the pub_date, can i use the Page IDs for sortting?

Hope can get your kindly response, TIA.</description>
		<content:encoded><![CDATA[<p>Hi, Mary,</p>
<p>Thanks a lot for your nice work.</p>
<p>I have one question, i&#8217;m using :<br />
[!Ditto? ............ &amp;orderBy=`pub_date DESC`  !]<br />
But i do not want to use the pub_date, can i use the Page IDs for sortting?</p>
<p>Hope can get your kindly response, TIA.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

