<?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>Agence de Développement Informatique du Nord &#187; render</title>
	<atom:link href="http://blog.adin.pro/tag/render/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Magento render cms/block with widgets</title>
		<link>http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/</link>
		<comments>http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/#comments</comments>
		<pubDate>Wed, 15 Oct 2014 08:39:25 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=422</guid>
		<description><![CDATA[<p>You create a cms static block (cms/block) and dynamise it with widget, here an example: You then render this block : But the widget {{skin url=&#8217;images/image-order.jpg&#8217;}} is not executed and is display as {{skin url=&#8217;images/image-order.jpg&#8217;}}. To execute the widget, you &#8230; <a href="http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/">Magento render cms/block with widgets</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You create a cms static block (cms/block) and dynamise it with widget, here an example:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;div class=&quot;confirmation&quot;&gt;
        &lt;img src=&quot;{{skin url='images/image-order.jpg'}}&quot; alt=&quot;&quot; /&gt;
 &lt;/div&gt;
</pre>
<p>You then render this block :</p>
<pre class="brush: php; title: ; notranslate">
echo Mage::getModel('cms/block')
            -&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId())
            -&gt;load(self::confirmationCmsBlockName)-&gt;render();
</pre>
<p>But the widget {{skin url=&#8217;images/image-order.jpg&#8217;}} is not executed and is display as {{skin url=&#8217;images/image-order.jpg&#8217;}}.</p>
<p>To execute the widget, you need to render as HTML a block and not a model</p>
<pre class="brush: php; title: ; notranslate">
echo  Mage::app()-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId(self::confirmationCmsBlockName)-&gt;toHtml();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/">Magento render cms/block with widgets</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-10-15/magento-render-cmsblock-with-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
