<?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; cms page</title>
	<atom:link href="http://blog.adin.pro/tag/cms-page/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 add block into cms page and add permissions</title>
		<link>http://blog.adin.pro/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/</link>
		<comments>http://blog.adin.pro/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/#comments</comments>
		<pubDate>Thu, 25 Feb 2016 15:38:37 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[cms page]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[whitelist]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=513</guid>
		<description><![CDATA[<p>If you want to add a block into cms page, you just have to add this into its content Of course, don&#8217;t forget to create the block class app/code/local/Adin/Page/Block/Page/Html/Combos.php and the .phtml file app/design/frontend/adin/default/template/page/html/combos.phtml But when you want to render &#8230; <a href="http://blog.adin.pro/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/">Magento add block into cms page and add permissions</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>If you want to add a block into cms page, you just have to add this into its content</p>
<pre class="brush: xml; title: ; notranslate">
{{block type=&quot;adin_page/page_html_combos&quot; name=&quot;combos&quot; template=&quot;page/html/combos.phtml&quot;}} 
</pre>
<p>Of course, don&#8217;t forget to create the block class app/code/local/Adin/Page/Block/Page/Html/Combos.php</p>
<pre class="brush: php; title: ; notranslate">
class Adin_Page_Block_Page_Html_Combos extends Mage_Core_Block_Template
{
//...
}
</pre>
<p>and the .phtml file<br />
app/design/frontend/adin/default/template/page/html/combos.phtml</p>
<p>But when you want to render the page, nothing.<br />
On the logs (system.log), you have : Security problem: adin_page/page_html_combos has not been whitelisted.<br />
It&#8217;s a new feature since securoty Patch SUPEE-7405 and Magento CE 1.9.2.2, you have to add your block into whitelist. You can do it manually, in backoffice, System > Permissions > Blocks or do it programmatically :</p>
<pre class="brush: php; title: ; notranslate">
$blockNames = array(
    'adin_page/page_html_combos'
);
foreach ($blockNames as $blockName) {
    $whitelistBlock = Mage::getModel('admin/block')-&gt;load($blockName, 'block_name');
    $whitelistBlock-&gt;setData('block_name', $blockName);
    $whitelistBlock-&gt;setData('is_allowed', 1);
    $whitelistBlock-&gt;save();
}
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/">Magento add block into cms page and add permissions</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/2016-02-25/magento-add-block-into-cms-page-and-add-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
