<?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>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/template-phtml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Thu, 05 Nov 2026 21:47:58 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Enabling template hints from the CLI</title>
		<link>https://www.the-mage-expert.com/2015/enabling-template-hints-from-the-cli/</link>
		<comments>https://www.the-mage-expert.com/2015/enabling-template-hints-from-the-cli/#comments</comments>
		<pubDate>Tue, 25 Oct 2022 09:59:57 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=2015</guid>
		<description><![CDATA[To enable Magento 2 Template Hints directly from the command line, run the following command in the Magento 2 root directory: [crayon-6af33ff9aafbf/] To disable the hints again, run this command: [crayon-6af33ff9ab01b/] Clear the Magento 2 cache after either command.]]></description>
				<content:encoded><![CDATA[<p>To enable Magento 2 Template Hints directly from the command line, run the following command in the Magento 2 root directory:</p><pre class="crayon-plain-tag">php bin/magento dev:template-hints:enable</pre><p>To disable the hints again, run this command:</p><pre class="crayon-plain-tag">php bin/magento dev:template-hints:disable</pre><p>Clear the Magento 2 cache after either command.</p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/2015/enabling-template-hints-from-the-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying the search form (form.mini.phtml) in a template</title>
		<link>https://www.the-mage-expert.com/1738/displaying-the-search-form-form-mini-phtml-in-a-template/</link>
		<comments>https://www.the-mage-expert.com/1738/displaying-the-search-form-form-mini-phtml-in-a-template/#comments</comments>
		<pubDate>Fri, 26 Feb 2021 07:29:04 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1738</guid>
		<description><![CDATA[Use the following code to display the search form form.mini.phtml inside any Magento 2 template. [crayon-6af33ff9b504e/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to display the search form <strong>form.mini.phtml</strong> inside any Magento 2 template.</p><pre class="crayon-plain-tag">$this-&gt;getLayout()-&gt;createBlock('core/template')-&gt;setTemplate('catalogsearch/form.mini.phtml')-&gt;toHtml();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1738/displaying-the-search-form-form-mini-phtml-in-a-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Including one template (phtml) in another template</title>
		<link>https://www.the-mage-expert.com/1709/including-one-template-phtml-in-another-template/</link>
		<comments>https://www.the-mage-expert.com/1709/including-one-template-phtml-in-another-template/#comments</comments>
		<pubDate>Wed, 13 May 2020 07:43:57 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1709</guid>
		<description><![CDATA[To render one .phtml template inside another template, insert the following code at the desired location: [crayon-6af33ff9b5442/]]]></description>
				<content:encoded><![CDATA[<p>To render one .phtml template inside another template, insert the following code at the desired location:</p><pre class="crayon-plain-tag">// Insert the search field anywhere in a template
echo $this-&gt;getLayout()-&gt;createBlock(&quot;Magento\Framework\View\Element\Template&quot;)-&gt;setTemplate(&quot;Magento_Search::form.mini.phtml&quot;)-&gt;toHtml();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1709/including-one-template-phtml-in-another-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting a custom product page template (phtml)</title>
		<link>https://www.the-mage-expert.com/3363/selecting-a-custom-product-page-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/3363/selecting-a-custom-product-page-template-phtml/#comments</comments>
		<pubDate>Wed, 05 Aug 2015 12:08:19 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[product page]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=3363</guid>
		<description><![CDATA[To use a custom template for your product page, create the template file and then specify the following layout update in the product&#8217;s layout section: catalog/product/view-individuell.phtml catalog/product/view/media-individuell.phtml]]></description>
				<content:encoded><![CDATA[<p>To use a custom template for your product page, create the template file and then specify the following layout update in the product&#8217;s layout section:</p>
<pre lang="xm">
<reference name="product.info">
    <action method="setTemplate"><template>catalog/product/view-individuell.phtml</template></action>
</reference>
<reference name="product.info.media">
    <action method="setTemplate"><template>catalog/product/view/media-individuell.phtml</template></action>
</reference>
</pre>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/3363/selecting-a-custom-product-page-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting to any page from a template (phtml)</title>
		<link>https://www.the-mage-expert.com/639/magento-redirecting-to-any-page-from-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/639/magento-redirecting-to-any-page-from-template-phtml/#comments</comments>
		<pubDate>Wed, 14 May 2014 08:13:11 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=639</guid>
		<description><![CDATA[Use the code below to redirect to any page from a Magento template (phtml) file. In this case, it is a redirect to the home page. [crayon-6af33ff9b583c/]]]></description>
				<content:encoded><![CDATA[<p>Use the code below to redirect to any page from a Magento template (phtml) file. In this case, it is a redirect to the home page.</p>
<p></p><pre class="crayon-plain-tag">Mage::app()-&gt;getFrontController()-&gt;getResponse()-&gt;setRedirect(Mage::getBaseUrl());</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/639/magento-redirecting-to-any-page-from-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the category page column count programmatically</title>
		<link>https://www.the-mage-expert.com/636/magento-changing-column-count-category-page-programmatically/</link>
		<comments>https://www.the-mage-expert.com/636/magento-changing-column-count-category-page-programmatically/#comments</comments>
		<pubDate>Mon, 05 May 2014 09:37:45 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category page]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=636</guid>
		<description><![CDATA[Add the following code to your themes catalog\product\list.phtml file. It will change the column count to 2. [crayon-6af33ff9b5b64/]]]></description>
				<content:encoded><![CDATA[<p>Add the following code to your themes <em>catalog\product\list.phtml</em> file. It will change the column count to 2.</p>
<p></p><pre class="crayon-plain-tag">$this-&gt;setColumnCount(2);</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/636/magento-changing-column-count-category-page-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting a blocks HTML in a template (phtml)</title>
		<link>https://www.the-mage-expert.com/632/magento-getting-html-of-block-in-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/632/magento-getting-html-of-block-in-template-phtml/#comments</comments>
		<pubDate>Mon, 05 May 2014 08:39:33 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=632</guid>
		<description><![CDATA[The below code shows how to echo the HTML of a block with the id &#8216;my_block&#8217;. [crayon-6af33ff9b5e7d/]]]></description>
				<content:encoded><![CDATA[<p>The below code shows how to echo the HTML of a block with the id &#8216;my_block&#8217;.</p>
<p></p><pre class="crayon-plain-tag">echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('my_block')-&gt;toHtml();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/632/magento-getting-html-of-block-in-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending parameters to a static block</title>
		<link>https://www.the-mage-expert.com/124/magento-sending-parameters-to-static-block/</link>
		<comments>https://www.the-mage-expert.com/124/magento-sending-parameters-to-static-block/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 12:29:15 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=124</guid>
		<description><![CDATA[You have to use so called filters to send parameters to a static block from a template for example. Lets take a look at the following code: Thats the static Magento block: [crayon-6af33ff9b60e2/] We want to send attribute_set_name and product_id&#8230;]]></description>
				<content:encoded><![CDATA[<p>You have to use so called filters to send parameters to a static block from a template for example. Lets take a look at the following code: </p>
<p>Thats the static Magento block:</p><pre class="crayon-plain-tag">&lt;a href=&quot;{{store url=''}}{{var attribute_set_name}}/configuration/test/product_id/{{var product_id}}&quot;&gt;
    Configure
&lt;/a&gt;</pre><p>We want to send attribute_set_name and product_id dynamically to the block. Add the following code to a template for example:</p>
<p></p><pre class="crayon-plain-tag">$block = $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('block_name');
$variables = array();
$variables['product_id'] = 123;
$variables['attribute_set_name'] = 'whatever';
                       
$filter = Mage::getModel('core/email_template_filter');
$filter-&gt;setVariables($variables);

// This will now echo the blocks HTML with the values from the passed parameters.
echo $filter-&gt;filter($block-&gt;toHtml());</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/124/magento-sending-parameters-to-static-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding the message block to a template (phtml)</title>
		<link>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:39:22 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=35</guid>
		<description><![CDATA[If you want to show the Magento messages (success, error, &#8230;) in your template file, add the following code the top of your template: [crayon-6af33ff9b63dd/]]]></description>
				<content:encoded><![CDATA[<p>If you want to show the Magento messages (success, error, &#8230;) in your template file, add the following code the top of your template:</p>
<p></p><pre class="crayon-plain-tag">&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
