<?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>Frédéric MARTINEZ - Freelance MAGENTO &#187; coder</title>
	<atom:link href="http://www.martinez-frederic.fr/tag/coder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinez-frederic.fr</link>
	<description>Freelance Magento Toulouse - Entrepreneur</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:54:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Coder dans des fichiers *.phtml sans toucher aux fichiers *.xml</title>
		<link>http://www.martinez-frederic.fr/2009/06/23/coder-dans-des-fichiers-phtml-sans-toucher-aux-fichiers-xml/</link>
		<comments>http://www.martinez-frederic.fr/2009/06/23/coder-dans-des-fichiers-phtml-sans-toucher-aux-fichiers-xml/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:57:10 +0000</pubDate>
		<dc:creator>Frédéric Martinez</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[back-office]]></category>
		<category><![CDATA[bloc statique]]></category>
		<category><![CDATA[coder]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">http://martinez-frederic.fr/developpement/?p=146</guid>
		<description><![CDATA[Sous Magento quand on veut commencer à développer, il faut coder dans un fichier *.phtml. Cependant, il y a 2 façons d&#8217;appeler ce fichier *.phtml : soit par les fichiers *.xml (les fichiers de layout, de disposition) qui font le lien entre un bloc statique et le fichier *.phtml soit directement depuis l&#8217;administration du bloc [...]]]></description>
			<content:encoded><![CDATA[<p>Sous Magento quand on veut commencer à développer, il faut coder dans un fichier *.phtml.</p>
<p>Cependant, il y a 2 façons d&#8217;appeler ce fichier *.phtml :</p>
<ul>
<li>soit par les fichiers *.xml (les fichiers de layout, de disposition) qui font le lien entre un bloc statique et le fichier *.phtml</li>
<li>soit directement depuis l&#8217;administration du bloc statique sans passer par les fichiers *.xml</li>
</ul>
<p style="padding-left: 30px;">Exemple : L&#8217;affichage de telle catégorie est différente et au lieu d&#8217;afficher les produits, on désire appeler un bloc statique qui lui aura besoin d&#8217;un peu de PHP.</p>
<p><span id="more-146"></span>Pour cette 2ème solution : on va dans :</p>
<ul>
<li>Admin &gt; Catalogue &gt; Gérer les catégories &gt; (votre catégorie) &gt; Onglet &laquo;&nbsp;Paramètre d&#8217;affichage&nbsp;&raquo;</li>
<li>Mode d&#8217;affichage : Bloc statique uniquement</li>
<li>Bloc CMS : Choisissez votre bloc</li>
</ul>
<p>Dans le contenu de votre bloc, vous insérez votre fichier *.phtml contenant vos traitements en PHP spécifique :</p>
<pre class="brush: plain; title: ;">{{block type='core/template' name='block_mon_bloc_cms' template='catalog/category/mon_bloc_cms.phtml'}}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinez-frederic.fr/2009/06/23/coder-dans-des-fichiers-phtml-sans-toucher-aux-fichiers-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
