<?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: Using PHP code on a CMS page (custom Block/module)</title>
	<atom:link href="http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php</link>
	<description>Magento Design and Development Information</description>
	<lastBuildDate>Mon, 10 Jan 2011 07:35:46 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kalpa</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-1113</link>
		<dc:creator>kalpa</dc:creator>
		<pubDate>Fri, 17 Dec 2010 13:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-1113</guid>
		<description>i cant get that params.this solution is not working for me.
What is that params.value</description>
		<content:encoded><![CDATA[<p>i cant get that params.this solution is not working for me.<br />
What is that params.value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vxcriss</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-1101</link>
		<dc:creator>vxcriss</dc:creator>
		<pubDate>Mon, 29 Nov 2010 15:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-1101</guid>
		<description>Hey, thanks for the tutorial, this magento was driving me nuts.</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the tutorial, this magento was driving me nuts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mage</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-1069</link>
		<dc:creator>mage</dc:creator>
		<pubDate>Thu, 11 Nov 2010 09:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-1069</guid>
		<description>The Block class should extend mage_core_block_template, not mage_core_block_abstract :)</description>
		<content:encoded><![CDATA[<p>The Block class should extend mage_core_block_template, not mage_core_block_abstract <img src='http://www.exploremagento.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavya</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-1024</link>
		<dc:creator>bhavya</dc:creator>
		<pubDate>Tue, 31 Aug 2010 09:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-1024</guid>
		<description>Hi to everybody. I want to display only categories in this page
http://www.uniquefloorsandstone.com/index.php/floor-navigator/find-hardwood-flooring.html
Plz help me</description>
		<content:encoded><![CDATA[<p>Hi to everybody. I want to display only categories in this page<br />
<a href="http://www.uniquefloorsandstone.com/index.php/floor-navigator/find-hardwood-flooring.html" rel="nofollow">http://www.uniquefloorsandstone.com/index.php/floor-navigator/find-hardwood-flooring.html</a><br />
Plz help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-1000</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 21 Jul 2010 12:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-1000</guid>
		<description>Thanks, just what i was looking for!</description>
		<content:encoded><![CDATA[<p>Thanks, just what i was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-872</link>
		<dc:creator>Björn</dc:creator>
		<pubDate>Sat, 27 Feb 2010 20:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-872</guid>
		<description>Thanks a lot for this great tutorial. I had quite some trouble getting the custom params. After a while I came up with the following solution:

public function getAttribute()
{
    return $this-&gt;_getData(&#039;my_param1&#039;);
}

protected function _toHtml()
{
    ...
    $var = $this-&gt;getAttribute();
    ...
}

One very important thing is to add the block into the cms content area and not to the layout updates!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this great tutorial. I had quite some trouble getting the custom params. After a while I came up with the following solution:</p>
<p>public function getAttribute()<br />
{<br />
    return $this-&gt;_getData(&#8217;my_param1&#8242;);<br />
}</p>
<p>protected function _toHtml()<br />
{<br />
    &#8230;<br />
    $var = $this-&gt;getAttribute();<br />
    &#8230;<br />
}</p>
<p>One very important thing is to add the block into the cms content area and not to the layout updates!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-826</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Fri, 11 Dec 2009 20:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-826</guid>
		<description>Forget that, I found it. Was having a few problems due to some cut&#039;n paste with wrong quotation marks.

If someone else like me, it&#039;s simply in : 
/app/design/frontend/your_interface/default/template/your_folder/your_file.phtml</description>
		<content:encoded><![CDATA[<p>Forget that, I found it. Was having a few problems due to some cut&#8217;n paste with wrong quotation marks.</p>
<p>If someone else like me, it&#8217;s simply in :<br />
/app/design/frontend/your_interface/default/template/your_folder/your_file.phtml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Éric</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-825</link>
		<dc:creator>Éric</dc:creator>
		<pubDate>Fri, 11 Dec 2009 19:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-825</guid>
		<description>Where do we put the phtml file in Tom&#039;s solution ? It&#039;s interesting!</description>
		<content:encoded><![CDATA[<p>Where do we put the phtml file in Tom&#8217;s solution ? It&#8217;s interesting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleksii</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-824</link>
		<dc:creator>Oleksii</dc:creator>
		<pubDate>Fri, 11 Dec 2009 16:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-824</guid>
		<description>{{block type=&quot;mycompany_custom/test&quot; ...}} my_param1=&quot;value 1&quot; another_param=&quot;value 2&quot;}}
How i understand,  type=&quot;mycompany_custom/test&quot;  initiate call to class MyCompany_Custom_Block_Test, but i don&#039;t understand HOW called exactly _toHtml() function?? 
Sorry about my bad english)</description>
		<content:encoded><![CDATA[<p>{{block type=&#8221;mycompany_custom/test&#8221; &#8230;}} my_param1=&#8221;value 1&#8243; another_param=&#8221;value 2&#8243;}}<br />
How i understand,  type=&#8221;mycompany_custom/test&#8221;  initiate call to class MyCompany_Custom_Block_Test, but i don&#8217;t understand HOW called exactly _toHtml() function??<br />
Sorry about my bad english)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleksii</title>
		<link>http://www.exploremagento.com/magento/using-php-code-on-a-cms-page-custom-blockmodule.php/comment-page-1#comment-823</link>
		<dc:creator>Oleksii</dc:creator>
		<pubDate>Fri, 11 Dec 2009 16:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://getfido.net/blog/?p=16#comment-823</guid>
		<description>{{block type=&quot;mycompany_custom/test&quot; ...}} my_param1=&quot;value 1&quot; another_param=&quot;value 2&quot;}}
How i understand,  type=&quot;mycompany_custom/test&quot;  initiate call to class MyCompany_Custom_Block_Test, but i don&#039;t understand HOW called exactly _toHtml() function??</description>
		<content:encoded><![CDATA[<p>{{block type=&#8221;mycompany_custom/test&#8221; &#8230;}} my_param1=&#8221;value 1&#8243; another_param=&#8221;value 2&#8243;}}<br />
How i understand,  type=&#8221;mycompany_custom/test&#8221;  initiate call to class MyCompany_Custom_Block_Test, but i don&#8217;t understand HOW called exactly _toHtml() function??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

