<?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: Magento: Adding a static block to a view file (AKA: phtml file)</title>
	<atom:link href="http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/</link>
	<description>Just another Sharpdot weblog</description>
	<lastBuildDate>Mon, 09 Jan 2012 12:32:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: emil</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-2005</link>
		<dc:creator>emil</dc:creator>
		<pubDate>Fri, 02 Dec 2011 08:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-2005</guid>
		<description>Hi, I got it. Thanks for such a detailed help :-)</description>
		<content:encoded><![CDATA[<p>Hi, I got it. Thanks for such a detailed help <img src='http://www.sharpdotinc.com/mdost/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-2004</link>
		<dc:creator>Mike D</dc:creator>
		<pubDate>Thu, 01 Dec 2011 21:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-2004</guid>
		<description>@emil,

To see which template files control different parts of the page just enable &quot;Template Path Hints&quot;.

1. Go To System-&gt; Configuration -&gt; Advanced -&gt; developer -&gt; debug
2. Change the &quot;Current Configuration Scope&quot; to the website.(this is the dropdown list in the top left of the page)
3. Now The &quot;Debug&quot; fieldset set &quot;template path hints&quot; and &quot;add block names to hints&quot; to Yes. 

Now when you refresh the frontend you will see the block class and template paths for the different parts of the page. When you found what you wanted set &quot;template Path Hints&quot; back to &quot;No&quot;.



the results files are these two
/app/design/frontend/Yourtheme/YourTheme/template/catalogsearch/result.phtml

AND

/app/design/frontend/Yourtheme/YourTheme/template/catalogsearch/advanced/result.phtml</description>
		<content:encoded><![CDATA[<p>@emil,</p>
<p>To see which template files control different parts of the page just enable &#8220;Template Path Hints&#8221;.</p>
<p>1. Go To System-&gt; Configuration -&gt; Advanced -&gt; developer -&gt; debug<br />
2. Change the &#8220;Current Configuration Scope&#8221; to the website.(this is the dropdown list in the top left of the page)<br />
3. Now The &#8220;Debug&#8221; fieldset set &#8220;template path hints&#8221; and &#8220;add block names to hints&#8221; to Yes. </p>
<p>Now when you refresh the frontend you will see the block class and template paths for the different parts of the page. When you found what you wanted set &#8220;template Path Hints&#8221; back to &#8220;No&#8221;.</p>
<p>the results files are these two<br />
/app/design/frontend/Yourtheme/YourTheme/template/catalogsearch/result.phtml</p>
<p>AND</p>
<p>/app/design/frontend/Yourtheme/YourTheme/template/catalogsearch/advanced/result.phtml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emil</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-2003</link>
		<dc:creator>emil</dc:creator>
		<pubDate>Thu, 01 Dec 2011 20:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-2003</guid>
		<description>Hi, and thanks for this tutorial. I am trying to add a static block only on my searchresult page. 
I wonder which phtml fil and where should I add this php code to?
best regards
Emil</description>
		<content:encoded><![CDATA[<p>Hi, and thanks for this tutorial. I am trying to add a static block only on my searchresult page.<br />
I wonder which phtml fil and where should I add this php code to?<br />
best regards<br />
Emil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil rana</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-1952</link>
		<dc:creator>sunil rana</dc:creator>
		<pubDate>Mon, 07 Nov 2011 11:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-1952</guid>
		<description>I found very good example on how to include static blocks.
http://www.phptechi.com/how-to-add-static-block-in-magento.html</description>
		<content:encoded><![CDATA[<p>I found very good example on how to include static blocks.<br />
<a href="http://www.phptechi.com/how-to-add-static-block-in-magento.html" rel="nofollow">http://www.phptechi.com/how-to-add-static-block-in-magento.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daren</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-1474</link>
		<dc:creator>Daren</dc:creator>
		<pubDate>Mon, 13 Jun 2011 22:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-1474</guid>
		<description>Wish this link would have been at the top of Google because it would have saved me half a day.</description>
		<content:encoded><![CDATA[<p>Wish this link would have been at the top of Google because it would have saved me half a day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-904</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Tue, 11 Jan 2011 12:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-904</guid>
		<description>You save my time one more time.
Thanks.</description>
		<content:encoded><![CDATA[<p>You save my time one more time.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moeed</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-823</link>
		<dc:creator>Moeed</dc:creator>
		<pubDate>Wed, 10 Nov 2010 05:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-823</guid>
		<description>Thanks Dude. It really works ............. :-) ..</description>
		<content:encoded><![CDATA[<p>Thanks Dude. It really works &#8230;&#8230;&#8230;&#8230;. <img src='http://www.sharpdotinc.com/mdost/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-797</link>
		<dc:creator>Mike D</dc:creator>
		<pubDate>Sat, 23 Oct 2010 22:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-797</guid>
		<description>In magento there are many ways to do this. It really depends on what you are developing.

In the first example it was calling a cms block created in the admin so in that case you probably will not want to create a new method.

In the second example the block that was created was extending &quot;core/template&quot; so in that case the &quot;toHtml()&quot; is the method used to render the html so there is no need to add a new method either.</description>
		<content:encoded><![CDATA[<p>In magento there are many ways to do this. It really depends on what you are developing.</p>
<p>In the first example it was calling a cms block created in the admin so in that case you probably will not want to create a new method.</p>
<p>In the second example the block that was created was extending &#8220;core/template&#8221; so in that case the &#8220;toHtml()&#8221; is the method used to render the html so there is no need to add a new method either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebFlakeStudio</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-796</link>
		<dc:creator>WebFlakeStudio</dc:creator>
		<pubDate>Sat, 23 Oct 2010 17:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-796</guid>
		<description>Good approach, thanks.
But it&#039;s recommended to create separate block method for this purposes.</description>
		<content:encoded><![CDATA[<p>Good approach, thanks.<br />
But it&#8217;s recommended to create separate block method for this purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucio</title>
		<link>http://www.sharpdotinc.com/mdost/2009/03/11/magento-adding-a-static-block-to-a-view-file-aka-phtml-file/comment-page-1/#comment-386</link>
		<dc:creator>Lucio</dc:creator>
		<pubDate>Wed, 19 May 2010 16:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=81#comment-386</guid>
		<description>Great, that is the info that I need. Thank you very much*</description>
		<content:encoded><![CDATA[<p>Great, that is the info that I need. Thank you very much*</p>
]]></content:encoded>
	</item>
</channel>
</rss>

