<?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: The Magical MODx ManagerManager Plugin</title>
	<atom:link href="http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 22:34:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Some0ne</title>
		<link>http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/comment-page-1/#comment-34357</link>
		<dc:creator>Some0ne</dc:creator>
		<pubDate>Sat, 09 Jul 2011 21:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.alistairrobinson.co.uk/blog/?p=744#comment-34357</guid>
		<description>I&#039;ve made a function for ManagerManager to set a template depending on parent id:

function mm_selectTemplate($parentIDs, $tplID) {
    global $modx;
    $e = &amp;$modx-&gt;Event;
    
    $output = &quot; // ----------- select template -------------- \n&quot;;
    $parentIDs= makeArray($parentIDs);
    foreach ($parentIDs as $parent)
        $output .= &#039; if(document.mutate.parent.value == \&#039;&#039;.$parent.&#039;\&#039;) $j(&quot;select[name=template]&quot;).val(&quot;&#039;.$tplID.&#039;&quot;);&#039; . &quot;\n&quot;;
    
    $e-&gt;output($output . &quot;\n&quot;);
}</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made a function for ManagerManager to set a template depending on parent id:</p>
<p>function mm_selectTemplate($parentIDs, $tplID) {<br />
    global $modx;<br />
    $e = &amp;$modx-&gt;Event;</p>
<p>    $output = &#8221; // &#8212;&#8212;&#8212;&#8211; select template &#8212;&#8212;&#8212;&#8212;&#8211; \n&#8221;;<br />
    $parentIDs= makeArray($parentIDs);<br />
    foreach ($parentIDs as $parent)<br />
        $output .= &#8216; if(document.mutate.parent.value == \&#8221;.$parent.&#8217;\') $j(&#8220;select[name=template]&#8220;).val(&#8220;&#8216;.$tplID.&#8217;&#8221;);&#8217; . &#8220;\n&#8221;;</p>
<p>    $e-&gt;output($output . &#8220;\n&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alistair Robinson</title>
		<link>http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/comment-page-1/#comment-137</link>
		<dc:creator>Alistair Robinson</dc:creator>
		<pubDate>Wed, 17 Feb 2010 08:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.alistairrobinson.co.uk/blog/?p=744#comment-137</guid>
		<description>Excellent point Tom. Being unfamiliar with plugins I think maybe that&#039;s what was puzzling me to begin with.

The answer is the system events, which I only mentioned in passing above. Once the relevant system events are checked for the plugin configuration, the code will run when those events fire.

The events are:

OnDocFormRender
OnDocFormPrerender
OnPluginFormRender
OnTVFormRender

With mm already installed, they&#039;re probably checked already, so that all you have to do is define rules, and whenever you edit a resource they will be applied.</description>
		<content:encoded><![CDATA[<p>Excellent point Tom. Being unfamiliar with plugins I think maybe that&#8217;s what was puzzling me to begin with.</p>
<p>The answer is the system events, which I only mentioned in passing above. Once the relevant system events are checked for the plugin configuration, the code will run when those events fire.</p>
<p>The events are:</p>
<p>OnDocFormRender<br />
OnDocFormPrerender<br />
OnPluginFormRender<br />
OnTVFormRender</p>
<p>With mm already installed, they&#8217;re probably checked already, so that all you have to do is define rules, and whenever you edit a resource they will be applied.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/comment-page-1/#comment-136</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 16 Feb 2010 23:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.alistairrobinson.co.uk/blog/?p=744#comment-136</guid>
		<description>I&#039;ve read about managermanager, and I am puzzled about how to make it actually APPLY to the manager site, templates, etc.

Is your comment above about the configuration pasting-in, is this how one &#039;activates&#039; the mm rules??

&#039;Activating&#039; the mm rules etc. and knowing that they are now &#039;in force&#039; is what puzzles me etc.

I have mm already installed because I&#039;ve started right off with Evo 1.0.2...

Thank you, Tom</description>
		<content:encoded><![CDATA[<p>I&#8217;ve read about managermanager, and I am puzzled about how to make it actually APPLY to the manager site, templates, etc.</p>
<p>Is your comment above about the configuration pasting-in, is this how one &#8216;activates&#8217; the mm rules??</p>
<p>&#8216;Activating&#8217; the mm rules etc. and knowing that they are now &#8216;in force&#8217; is what puzzles me etc.</p>
<p>I have mm already installed because I&#8217;ve started right off with Evo 1.0.2&#8230;</p>
<p>Thank you, Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://alistairrobinson.co.uk/the-magical-modx-managermanager-plugin/comment-page-1/#comment-134</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 13 Jan 2010 14:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.alistairrobinson.co.uk/blog/?p=744#comment-134</guid>
		<description>Excellent post, very useful. ManagerManager is an incredibly powerful part of any MODx setup. I build all my websites using MODx and it&#039;s great being able to customize fields depending on the nature of the project and the needs of my clients.</description>
		<content:encoded><![CDATA[<p>Excellent post, very useful. ManagerManager is an incredibly powerful part of any MODx setup. I build all my websites using MODx and it&#8217;s great being able to customize fields depending on the nature of the project and the needs of my clients.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

