<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codeistry blog &#187; modx</title>
	<atom:link href="http://www.codeistry.com/blog/tag/modx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeistry.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 14 Aug 2009 08:10:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bunch of updates to the Codeistry site</title>
		<link>http://www.codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/</link>
		<comments>http://www.codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:25:54 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Non Technical]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[codeistry_website]]></category>
		<category><![CDATA[modx]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=261</guid>
		<description><![CDATA[I&#8217;ve made a number of small updates to the Codeistry site today, which I&#8217;ve been queuing up on my local version for a while. I&#8217;ve made updates and corrections to my Accessibility made simple article, as well as minor updates to the 9 Steps to Improve your Small Business website and SEO for Fun and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve made a number of small updates to the Codeistry site today, which I&#8217;ve been queuing up on my local version for a while. I&#8217;ve made updates and corrections to my <a href="http://www.codeistry.com/about/accessibility">Accessibility made simple</a> article, as well as minor updates to the <a href="http://www.codeistry.com/help/improve-your-small-business-website">9 Steps to Improve your Small Business website</a> and <a href="http://www.codeistry.com/about/seo">SEO for Fun and Profit</a> ones.</p>
<p><img class="alignleft size-full wp-image-264" title="Screenshot of MODx metadata field in page editor." src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot38.png" alt="Screenshot of MODx metadata field in page editor." width="469" height="261" />I&#8217;ve also souped up the metadata that gets output in the page&#8217;s code, so that I&#8217;m now outputting a meta description tag &#8211; this outputs whatever I&#8217;ve typed into the page&#8217;s Description field in MODx.</p>
<p><img class="alignleft size-full wp-image-266" title="Screenshot of the MODx Meta Keywords system" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot39.png" alt="Screenshot of the MODx Meta Keywords system" width="320" height="256" />I&#8217;ve also started using MODx built in meta keywords system, so some pages now have some keywords set.</p>
<p>A little while age I also added a Creative Commons license to the page footer but forget to mention it on the blog. This means that the site&#8217;s content is now actually marked as copright of Codeistry now &#8211; which it wasn&#8217;t before. As I&#8217;ve chosen a Creative Commons Attribution Non-Commercial Share Alike license, this also means that anyone can re-use, re-mix, translate or re-purpose any of the stuff on here for whatever they want, provided it&#8217;s non-commercial and they credit the original source.</p>
<p>Anyway, here&#8217;s the old footer:</p>
<p><img class="alignnone size-full wp-image-268" title="Screenshot of the old Codeistry page footer, before the new license" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot21.png" alt="Screenshot of the old Codeistry page footer, before the new license" width="597" height="226" /></p>
<p>and here&#8217;s the new one:</p>
<p><img class="alignnone size-full wp-image-269" title="Screenshot of the Codeistry page footer, with the new Creative Commons license" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot22.png" alt="Screenshot of the Codeistry page footer, with the new Creative Commons license" width="595" height="301" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MODx Snippet: New version of Wayfinder</title>
		<link>http://www.codeistry.com/blog/2009/01/modx-snippet-new-version-of-wayfinder/</link>
		<comments>http://www.codeistry.com/blog/2009/01/modx-snippet-new-version-of-wayfinder/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 00:21:51 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[wayfinder]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=215</guid>
		<description><![CDATA[Good news everyone! During my development travails, I&#8217;ve created an updated version of Wayfinder that fixes two issues and adds two handy new features!
Fixes
I&#8217;ve incorporated this fix which makes the hereClass work properly with weblinks in the menu and I&#8217;ve fixed the SQL query to work around the MySQL 5.0.51 sorting bug.
New Features
lastRowTpl
I&#8217;ve also added [...]]]></description>
			<content:encoded><![CDATA[<p>Good news everyone! During my development travails, I&#8217;ve created an updated version of Wayfinder that <strong>fixes two issues</strong> and <strong>adds two handy new features</strong>!</p>
<h3>Fixes</h3>
<p>I&#8217;ve incorporated <a href="http://modxcms.com/forums/index.php/topic,28461.0.html">this fix</a> which makes the hereClass work properly with weblinks in the menu and I&#8217;ve fixed the SQL query to work around the MySQL 5.0.51 sorting bug.</p>
<h3>New Features</h3>
<h4>lastRowTpl</h4>
<p>I&#8217;ve also added a new parameter called <strong>lastRowTpl</strong> which allows you specify a chunk to be used for the last menu item output. It works the same way as all the other wayfinder tpl&#8217;s and defaults to using rowTpl is it isn&#8217;t specified.</p>
<p>It&#8217;s very useful for little menu&#8217;s that currently look like this if you do them with Wayfinder:</p>
<pre>item1 | item2 | item3 | lastitem |</pre>
<p>and should look like this:</p>
<pre>item1 | item2 | item3 | lastitem</pre>
<h4>Odd &amp; Even classes</h4>
<p>Finally, I&#8217;ve added support for even &amp; odd classes on rows. These work like all the other wayfinder classes &#8211; you specify a class name in the parameter and this will be added to the wf.classes placeholder. These ones are only output on the appropriate rows, though &#8211; and you don&#8217;t have to specify both if you don&#8217;t want to &#8211; it&#8217;ll still work with just one.</p>
<p>These are really useful for menu&#8217;s which are supposed to be stripey, with every other item a different colour.</p>
<p>To implement this, I&#8217;ve modified both Wayfinder files. You can download the new versions from <a href="http://www.codeistry.com/assets/files/wayfinder-201.zip">here (.zip)</a> or <a href="http://www.codeistry.com/assets/files/wayfinder-201.tar.gz">here (.tar.gz)</a>.</p>
<p>I&#8217;m using these on live sites, because I&#8217;m a crazy fool, but if we can get some more testing from everyone, maybe this can be added to the repository as a new version and maybe then into the main MODx distribution, so that everyone can share the love.</p>
<p>What do you think &#8211; <a href="http://modxcms.com/forums/index.php/topic,31895.0.html">let me know in the MODx forum thread</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2009/01/modx-snippet-new-version-of-wayfinder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of MODx CMS out &#8211; 0.9.6.3</title>
		<link>http://www.codeistry.com/blog/2009/01/new-version-of-modx-cms-out-0963/</link>
		<comments>http://www.codeistry.com/blog/2009/01/new-version-of-modx-cms-out-0963/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 01:28:31 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=90</guid>
		<description><![CDATA[Another pretty sizeable release, despite the small version increment. There are over 100 changes but my personal highlights from the changelog are:

Updated AjaxSearch to version 1.8.1
Update eForm to version 1.4.4.5
Update Jot to version 1.1.4
Duplicate TV associations when duplicating a template
Allow &#8216;.&#8217;,'-&#8217;,&#8217; &#8216; and &#8216;_&#8217; in TV names
Amend the top username link to explicitly state a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-103" title="MODx Logo" src="http://www.codeistry.com/blog/wp-content/uploads/2009/01/modx-logo-evolution-box-only-75pct.png" alt="" width="114" height="86" />Another pretty sizeable release, despite the small version increment. There are over 100 changes but my personal highlights from the <a href="http://svn.modxcms.com/svn/tattoo/tattoo/releases/0.9.6.3/install/changelog.txt">changelog</a> are:</p>
<ul>
<li>Updated AjaxSearch to version 1.8.1</li>
<li>Update eForm to version 1.4.4.5</li>
<li>Update Jot to version 1.1.4</li>
<li>Duplicate TV associations when duplicating a template</li>
<li>Allow &#8216;.&#8217;,'-&#8217;,&#8217; &#8216; and &#8216;_&#8217; in TV names</li>
<li>Amend the top username link to explicitly state a &#8216;change password&#8217; link instead of just linking the username</li>
<li>Added database version to MySQL DBAPI class and to the System Information report</li>
<li>File manager can now handle files with illegal url characters (added urlencode escaping).</li>
</ul>
<p>The <a href="http://modxcms.com/downloads.html">latest version of MODx can be downloaded here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2009/01/new-version-of-modx-cms-out-0963/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MODx Snippet: ChunkIf</title>
		<link>http://www.codeistry.com/blog/2008/11/modx-snippet-chunkif/</link>
		<comments>http://www.codeistry.com/blog/2008/11/modx-snippet-chunkif/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 14:16:59 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=65</guid>
		<description><![CDATA[Ages ago, I wrote a MODx snippet called ChunkIf and I thought it was about time that I shared it with the MODx community. ChunkIf allows you to choose which of two chunks gets output, based on a template variable being set or not; its not big or clever but I find it useful and [...]]]></description>
			<content:encoded><![CDATA[<p>Ages ago, I wrote a MODx snippet called ChunkIf and I thought it was about time that I shared it with the MODx community. ChunkIf allows you to choose which of two chunks gets output, based on a template variable being set or not; its not big or clever but I find it useful and hopefully you might do, too.</p>
<p>The long form of the snippet call looks like this:</p>
<pre>[[ChunkIf? &amp;tv=`tvname` &amp;trueChunk=`chunkname` &amp;falseChunk=`chunkname`  &amp;debug=`1|0` ]]</pre>
<p>The parameters to the snippet call work like this:</p>
<dl>
<dt>&amp;tv</dt>
<dd>This is the name of the template variable you want to test. The value of this variable will be checked and if it&#8217;s not empty or blank, &amp;trueChunk will be output &#8211; otherwise &amp;falseChunk will be.</dd>
<dt>&amp;trueChunk</dt>
<dd>The name of the chunk who&#8217;s content you want output, in the event that your template variable (&amp;tv) has a value.</dd>
<dt>&amp;falseChunk</dt>
<dd>The name of the chunk who&#8217;s content you want output, if your template variable (&amp;tv) is empty. If you omit this parameter, an empty string will be output if &amp;tv is empty.</dd>
<dt>&amp;debug</dt>
<dd>Set this to 1 to emit debugging comments into the HTML output; set it to 0 or leave it out to switch off.</dd>
</dl>
<p>There is a short version too:</p>
<pre>[[ChunkIf? &amp;tv=`tvname` ]]</pre>
<p>The shorthand form attempts to output the contents of a chunk with the same name as &amp;tv, if &amp;tv is set, or an empty string. If there&#8217;s no chunk with the same name, it also returns an empty string.</p>
<p>This shorthand version is very handy for switching chunks on and off using a single variable. As chunks can contain other chunks and snippet calls, you can use this to switch sidebars, footers and other complex bits of layout on and off on a per page basis, with a simple checkbox template variable.</p>
<pre class="brush: php; ">

&lt;?php
	/*
		Version: 0.2
		Date: 21/07/2008
		Description:
			&lt;strong&gt;0.2&lt;/strong&gt; Outputs the contents of the chunk passed in
			$trueChunk if the template variable passed in $tv is set (i.e. has a value).
			Otherwise outputs the contents of the $falseChunk chunk. Expects $tv to be the
			name of the Template Variable to test, and $trueChunk &amp; $falseChunk to be names
			of chunks.

		eg:

		[[ChunkIf? &amp;tv=`tvname` &amp;trueChunk=`chunkname` &amp;falseChunk=`chunkname` ]]
			- Long version outputs $trueChunk if $tv has a value, otherwise
			outputs $falseChunk.
		[[ChunkIf? &amp;tv=`tvname` &amp;trueChunk=`chunkname` ]]
			- This short version outputs an empty string if $tv has no value.
		[[ChunkIf? &amp;tv=`tvname` ]]
			- This very short version attempts to output the contents of a chunk
			 with the same name as $tv
		[[ChunkIf? &amp;tv=`tvname` &amp;debug=`1` ]]
			- Switches on debugging output - output&#039;s HTML comments for debugging.

	*/

	// get tv name
	$tv = isset( $tv ) ? $tv : &#039;&#039;;

	// get current page ID
	$id = isset( $id )? $id: $modx -&gt; documentObject[&#039;id&#039;];

	// Get the value of $tv
	$tvarray = $modx -&gt; getTemplateVarOutput( $tv, $id );
	$value = &#039;&#039;.trim($tvarray[$tv]);

	if ($debug) {
		$dtmp = &#039;&lt;!--&#039;;
		$dtmp .= &#039;tv: &#039;.$tv.&#039;, &#039;;
		$dtmp .=  &#039;id: &#039;.$id.&#039;, &#039;;
		$dtmp .=  &#039;value: &#039;.$value;
		$dtmp .=  &#039;--&gt;&#039;;

		echo $dtmp;
	}

	// Decide which chunk to return.
	if ($value == &#039;&#039;) {
		// get chunk to return if $tv has no value
		$falseChunk = isset( $falseChunk )? $modx -&gt; getChunk( $falseChunk ): &#039;&#039;;
		return $falseChunk;
	} else {
		// get chunk to return if $tv has a value
		if (isset( $trueChunk ))
		{
			$trueChunk = $modx -&gt; getChunk( $trueChunk );
		} else {
			// Attempt to get the chunk with the same name as $tv
			$trueChunk = $modx -&gt; getChunk( $tv );
		}
		return $trueChunk;
	}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2008/11/modx-snippet-chunkif/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>New version of MODx CMS out &#8211; 0.9.6.2</title>
		<link>http://www.codeistry.com/blog/2008/09/new-version-of-modx-out-0962/</link>
		<comments>http://www.codeistry.com/blog/2008/09/new-version-of-modx-out-0962/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 00:44:37 +0000</pubDate>
		<dc:creator>Duncan Lock</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.codeistry.com/blog/?p=7</guid>
		<description><![CDATA[While the numbering scheme would imply a simple patch, it is in fact a substantial upgrade, especially in the areas of security and Manager functionality.]]></description>
			<content:encoded><![CDATA[<p>A new version of MODx has just been released &#8211; 0.9.6.2, with a whole bunch of fixes and updates. There have been loads of fixes and updates checked-in by the MODx team &amp; the community since 0.9.6.1 and lots of code clean-up and multi-language fixes done.</p>
<p>See <a rel="external" href="http://modxcms.com/forums/index.php/topic,28875.msg175378.html#msg175378">here for MODx forum announcement</a> and here for the <a rel="external" href="http://svn.modxcms.com/svn/tattoo/tattoo/releases/0.9.6.2/install/changelog.txt">complete (long &amp; technical) changelog</a>.</p>
<p>I&#8217;ll be upgrading the Codeistry site over the next few days and and then rolling the update out to all client sites as soon as possible after that.</p>
<p>My highlights amongst the many changes are:</p>
<h4>Allow weblinks to have summary (introtext) fields</h4>
<p>Weblink documents can now have an introtext summary, like normal documents, which is quite handy.</p>
<h4>Set the published status of duplicated documents to unpublished</h4>
<p>When you duplicate a document, it will now be set to un-published. Previously it would copy the published status of the document that you were duplicating &#8211; which was almost never what you really wanted.</p>
<h4>Updated @INHERIT TV command to see through un-published pages.</h4>
<p>Template variables which inherit their values from their parent documents, will now do so even if their parent document isn&#8217;t published; this propagates down through the site structure.</p>
<h4>Added a manager role for emptying the trash/permanently purging docs</h4>
<p>There&#8217;s now a manager role for permanently deleting documents which is handy in setups with lots of users.</p>
<h4>Added plugin to show image previews in the manager for Image TVs</h4>
<p><img class="alignleft" title="Screenshot showing Template variable Image plugin working." src="/assets/images/blog/new-version-of-modx-out-0.9.6.2/image_tv_plugin_resized.png" alt="Screenshot showing Template variable Image plugin working." width="238" height="210" />Really nice feature which shows you a thumbnail preview of the image being used by a template variable while you&#8217;re editing the page.</p>
<h4>TinyMCE 3.1.0.1a and MCPUCK file browser improvements</h4>
<p>This is great &#8211; the document content editor component has been updated to the latest version &#8211; which saves me from doing it on every install. This newer version of the editor is a big improvement on the previous one shipped with MODx 0.9.6.1</p>
<h4>Updated &#8216;built-in&#8217; snippets:</h4>
<ul>
<li>Updated Jot snippet to version 1.1.3</li>
<li>Updated Breadcrumbs snippet to 1.0.1</li>
<li>Update AjaxSearch to 1.7.1 and Search Highlighting plugin to 1.2.0.2</li>
<li>Update Ditto/Reflect to version 2.1</li>
<li>Migrated Mootools to 1.11</li>
</ul>
<h4>Patches to Ditto 2.1 to fix sorting and change default docs displayed number from 3 to &#8220;all&#8221;</h4>
<p>Ditto will now display all documents it finds by default, instead on only the first 3, and sort order fixes for MySQL 5.0.31a</p>
<h4>Added the ability to easily add custom help pages to the manager.</h4>
<p><img class="alignleft" title="Screenshot of the help MODx manager help page, showing a new test tab." src="/assets/images/blog/new-version-of-modx-out-0.9.6.2/help_page_tabs.png" alt="Screenshot of the help MODx manager help page, showing a new test tab." width="221" height="158" />This really <em>is</em> simple &#8211; just create the HTML files in the /manager/help folder and they appear at tabs on the Help page. Neat &#8211; I&#8217;ll be taking advantage of this in due course.</p>
<h4>Fix to alphabetical sorting in MCPUCK browser</h4>
<p>Fix for sorting images alphabetically in the image browser. This now seems to work properly, the image browser sorts images alphabetically, making it much easier to use, especially if you&#8217;ve got lots of images in a folder.</p>
<h4>Added XML doctype and header to MCPUK for file uploads</h4>
<p>This should fix a very annoying error when uploading files via the resource browser, especially in Internet Explorer.</p>
<h4>Added RSS Feeds of the Security Announcements and Important News to the Manager Login Welcome Page.</h4>
<p><img class="alignleft" title="Screenshot on the new MODx Manager Welcome page, showing new RSS feed tabs." src="/assets/images/blog/new-version-of-modx-out-0.9.6.2/welcome_page_feeds.png" alt="Screenshot on the new MODx Manager Welcome page, showing new RSS feed tabs." width="317" height="184" />This is quite useful &#8211; it helps keep site administrators up to date with the latest MODx releases and security updates.</p>
<h4>Fix &#8216;Allowed Days&#8217; checkboxes for Manager users</h4>
<p>These were previously the wrong way round &#8211; unchecked when they should have been checked, as I discovered the other day during a live demo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeistry.com/blog/2008/09/new-version-of-modx-out-0962/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
