<?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: A MODx Ditto Directory</title>
	<atom:link href="http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/</link>
	<description>Web development, modx, css, standards, managed web hosting, business class email solutions.</description>
	<lastBuildDate>Sat, 28 Jan 2012 22:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gregory Smart</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-597</link>
		<dc:creator>Gregory Smart</dc:creator>
		<pubDate>Thu, 12 May 2011 13:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-597</guid>
		<description>In this example docLink is a Template Variable. This is a PHx statement, inside of a TPL, that checks to see if the TV is not blank. If it is not, then it renders the content inside of the &#039;then&#039; statement. This keeps it from outputting anything unless there is something there to output.
So, if I am understanding, in your TPL the PHx statements would look like: [+CompanyName:isnot=``:then=`Company Name:[+CompanyName+]`+]</description>
		<content:encoded><![CDATA[<p>In this example docLink is a Template Variable. This is a PHx statement, inside of a TPL, that checks to see if the TV is not blank. If it is not, then it renders the content inside of the &#8216;then&#8217; statement. This keeps it from outputting anything unless there is something there to output.<br />
So, if I am understanding, in your TPL the PHx statements would look like: [+CompanyName:isnot=``:then=`Company Name:[+CompanyName+]`+]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tino</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-596</link>
		<dc:creator>tino</dc:creator>
		<pubDate>Thu, 12 May 2011 12:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-596</guid>
		<description>I am a bit of a newbie in Ditto though I have used other aspects of MODx.


I followed through the article and created the templates and documents as advised. I thought I understood most of it.


I do not understand the last item under the title &quot;The Snippet(s)&quot;. The one with the following 


code:


&lt;code&gt;

[+docLink:isnot=``:then=`&lt;a href=&quot;[+docLink+]&quot; title=&quot;[+pagetitle+]&#039;s Website&quot; rel=&quot;nofollow&quot;&gt;[+pagetitle+]&#039;s Website&lt;/a&gt;`+]

&lt;/code&gt;


Here you started talking about placeholders yet in the beginning we created TVs. Is docLink some 


sort of plugin like pHX? or its a placeholder that relates/is converted from a TV you created(as 


one of the directory item fields)


As an example:


I created the following TVs to hold the field values:


&lt;code&gt;

[*CompanyName*] - Text

[*Email*] - Input Type: Email

[*Website*] - Input Type: URL

&lt;/code&gt;
Then in the {{directoryFolder}} chunk, I had the following Ditto Call:


&lt;code&gt;

[!Ditto? &amp;startID=`[*id*]` &amp;depth=`2` &amp;tpl=`physicianTPL` &amp;sortBy=`lastName` &amp;sortDir=`asc` &amp;summarize=`10` &amp;paginate=`1` &amp;paginateAlwaysShowLinks=`1`!]

&lt;/code&gt;


In my {{physicianTPL}} Chunk I have:

&lt;code&gt;



Company Name:[+CompanyName:isnot=``:then=`[+CompanyName+]`+]

Email:[+Email:isnot=``:then=`CompanyEmail`+]

Website:[+Website:isnot=``:then=`&lt;a href=&quot;[+CompanyWebsite+]&quot; title=&quot;[+pagetitle+]&#039;s Website&quot; rel=&quot;nofollow&quot;&gt;[+pagetitle+]&#039;s Website&lt;/a&gt;`+]





&lt;/code&gt;


It outputs 10 iterations of

Company Name:

Email:

Website:


...without and content.


Note that I have only created ONE directory entry as a test and expected to see just that one.


What have I done wrong? And why do we call placeholders e.g [+Website+] when we created TVs e.g. 


[*Website*]


Hope you can help.


My apologies for the very long email and the ignorance.
</description>
		<content:encoded><![CDATA[<p>I am a bit of a newbie in Ditto though I have used other aspects of MODx.</p>
<p>I followed through the article and created the templates and documents as advised. I thought I understood most of it.</p>
<p>I do not understand the last item under the title &#8220;The Snippet(s)&#8221;. The one with the following </p>
<p>code:</p>
<p><code></p>
<p>[+docLink:isnot=``:then=`<a href="[+docLink+]" title="[+pagetitle+]'s Website" rel="nofollow">[+pagetitle+]'s Website</a>`+]</p>
<p></code></p>
<p>Here you started talking about placeholders yet in the beginning we created TVs. Is docLink some </p>
<p>sort of plugin like pHX? or its a placeholder that relates/is converted from a TV you created(as </p>
<p>one of the directory item fields)</p>
<p>As an example:</p>
<p>I created the following TVs to hold the field values:</p>
<p><code></p>
<p>[*CompanyName*] - Text</p>
<p>[*Email*] - Input Type: Email</p>
<p>[*Website*] - Input Type: URL</p>
<p></code><br />
Then in the {{directoryFolder}} chunk, I had the following Ditto Call:</p>
<p><code></p>
<p>[!Ditto? &amp;startID=`[*id*]` &amp;depth=`2` &amp;tpl=`physicianTPL` &amp;sortBy=`lastName` &amp;sortDir=`asc` &amp;summarize=`10` &amp;paginate=`1` &amp;paginateAlwaysShowLinks=`1`!]</p>
<p></code></p>
<p>In my {{physicianTPL}} Chunk I have:</p>
<p><code></p>
<p>Company Name:[+CompanyName:isnot=``:then=`[+CompanyName+]`+]</p>
<p>Email:[+Email:isnot=``:then=`CompanyEmail`+]</p>
<p>Website:[+Website:isnot=``:then=`<a href="[+CompanyWebsite+]" title="[+pagetitle+]'s Website" rel="nofollow">[+pagetitle+]'s Website</a>`+]</p>
<p></code></p>
<p>It outputs 10 iterations of</p>
<p>Company Name:</p>
<p>Email:</p>
<p>Website:</p>
<p>&#8230;without and content.</p>
<p>Note that I have only created ONE directory entry as a test and expected to see just that one.</p>
<p>What have I done wrong? And why do we call placeholders e.g [+Website+] when we created TVs e.g. </p>
<p>[*Website*]</p>
<p>Hope you can help.</p>
<p>My apologies for the very long email and the ignorance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nike shox</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-498</link>
		<dc:creator>nike shox</dc:creator>
		<pubDate>Tue, 07 Sep 2010 07:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-498</guid>
		<description>Interesting post, nice site have been looking at someof your other posts, will add you to my RSS feeds!</description>
		<content:encoded><![CDATA[<p>Interesting post, nice site have been looking at someof your other posts, will add you to my RSS feeds!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nike shox</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-490</link>
		<dc:creator>nike shox</dc:creator>
		<pubDate>Tue, 31 Aug 2010 08:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-490</guid>
		<description>Thanks a lot for sharing. You have done a brilliant job. Your article is truly relevant to my study at this moment, and I am really happy I discovered your website. However, I would like to see more details about this topic. I&#039;m going to keep coming back here. </description>
		<content:encoded><![CDATA[<p>Thanks a lot for sharing. You have done a brilliant job. Your article is truly relevant to my study at this moment, and I am really happy I discovered your website. However, I would like to see more details about this topic. I&#8217;m going to keep coming back here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-469</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Fri, 30 Jul 2010 14:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-469</guid>
		<description>Just what I was looking for...great job.</description>
		<content:encoded><![CDATA[<p>Just what I was looking for&#8230;great job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shox nz</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-415</link>
		<dc:creator>shox nz</dc:creator>
		<pubDate>Tue, 08 Jun 2010 08:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-415</guid>
		<description>Well , the view of the passage is totally correct ,your details is really  reasonable and  &lt;a href=&quot;http://spring-bags.com&quot;  rel=&quot;nofollow&quot;&gt;spring-bags.com&lt;/a&gt;  you guy give us  valuable  informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!</description>
		<content:encoded><![CDATA[<p>Well , the view of the passage is totally correct ,your details is really  reasonable and  <a href="http://spring-bags.com"  rel="nofollow">spring-bags.com</a>  you guy give us  valuable  informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ditto/PHx Directory w/Cross-Categorization &#124; Greg Smart</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-276</link>
		<dc:creator>Ditto/PHx Directory w/Cross-Categorization &#124; Greg Smart</dc:creator>
		<pubDate>Thu, 04 Mar 2010 15:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-276</guid>
		<description>[...] you missed the first post about creating A MODx Ditto Directory this post is designed to describe the same type of 3 level directory (I am referring to the MODx [...]</description>
		<content:encoded><![CDATA[<p>[...] you missed the first post about creating A MODx Ditto Directory this post is designed to describe the same type of 3 level directory (I am referring to the MODx [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nolner</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-229</link>
		<dc:creator>nolner</dc:creator>
		<pubDate>Wed, 13 Jan 2010 21:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-229</guid>
		<description>Lol, thx - never thought of using twitter for this stuff - but then I have follwers and have never sent a tweet!&lt;br&gt;&lt;br&gt;Heres another one you can maybe help with:&lt;br&gt;&lt;a href=&quot;http://modxcms.com/forums/index.php/topic%2C44132.0.html&quot; rel=&quot;nofollow&quot;&gt;http://modxcms.com/forums/index.php/topic,44132...&lt;/a&gt;&lt;br&gt;&lt;br&gt;thx again</description>
		<content:encoded><![CDATA[<p>Lol, thx &#8211; never thought of using twitter for this stuff &#8211; but then I have follwers and have never sent a tweet!</p>
<p>Heres another one you can maybe help with:<br /><a href="http://modxcms.com/forums/index.php/topic%2C44132.0.html" rel="nofollow">http://modxcms.com/forums/index.php/topic,44132&#8230;</a></p>
<p>thx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Smart</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-228</link>
		<dc:creator>Gregory Smart</dc:creator>
		<pubDate>Wed, 13 Jan 2010 20:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-228</guid>
		<description>I sent out a tweet about it with a link to the forum post and this RSS. Twitter is a pretty good place to get help like this too. Most of the people I follow are related to MODx, you can also search #modx.</description>
		<content:encoded><![CDATA[<p>I sent out a tweet about it with a link to the forum post and this RSS. Twitter is a pretty good place to get help like this too. Most of the people I follow are related to MODx, you can also search #modx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nolner</title>
		<link>http://www.gregorysmart.com/2009/07/03/a-modx-ditto-directory/comment-page-1/#comment-227</link>
		<dc:creator>nolner</dc:creator>
		<pubDate>Wed, 13 Jan 2010 20:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregorysmart.com/?p=580#comment-227</guid>
		<description>&lt;a href=&quot;http://modxcms.com/forums/index.php/topic%2C43990.0.html&quot; rel=&quot;nofollow&quot;&gt;http://modxcms.com/forums/index.php/topic,43990...&lt;/a&gt;&lt;br&gt;&lt;br&gt;no replies! :(</description>
		<content:encoded><![CDATA[<p><a href="http://modxcms.com/forums/index.php/topic%2C43990.0.html" rel="nofollow">http://modxcms.com/forums/index.php/topic,43990&#8230;</a></p>
<p>no replies! <img src='http://www.gregorysmart.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

