<?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: Specifying the number of columns for each Prestashop page</title>
	<atom:link href="http://nemops.com/columns-for-each-prestashop-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://nemops.com/columns-for-each-prestashop-page/</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Fri, 10 Mar 2023 23:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>By: andreas</title>
		<link>http://nemops.com/columns-for-each-prestashop-page/comment-page-1/#comment-45673</link>
		<dc:creator><![CDATA[andreas]]></dc:creator>
		<pubDate>Sun, 25 May 2014 07:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1496#comment-45673</guid>
		<description><![CDATA[again, thanks alot nemo... easy to follow tuts for noobs like me. been trying to make a blog with 2columns while other pages 3columns. these help me alot of time. you&#039;re the best]]></description>
		<content:encoded><![CDATA[<p>again, thanks alot nemo&#8230; easy to follow tuts for noobs like me. been trying to make a blog with 2columns while other pages 3columns. these help me alot of time. you&#8217;re the best</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konrad</title>
		<link>http://nemops.com/columns-for-each-prestashop-page/comment-page-1/#comment-39296</link>
		<dc:creator><![CDATA[Konrad]]></dc:creator>
		<pubDate>Mon, 28 Oct 2013 14:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1496#comment-39296</guid>
		<description><![CDATA[Hi!
Nice tut. Thanks. But how to recognize all &quot;$page_name&quot; names? i have found:
category
product
order
cms
authentication
payment

But how the my-account page is called? Anybody?]]></description>
		<content:encoded><![CDATA[<p>Hi!<br />
Nice tut. Thanks. But how to recognize all &#8220;$page_name&#8221; names? i have found:<br />
category<br />
product<br />
order<br />
cms<br />
authentication<br />
payment</p>
<p>But how the my-account page is called? Anybody?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eno</title>
		<link>http://nemops.com/columns-for-each-prestashop-page/comment-page-1/#comment-38970</link>
		<dc:creator><![CDATA[Eno]]></dc:creator>
		<pubDate>Tue, 22 Oct 2013 22:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1496#comment-38970</guid>
		<description><![CDATA[Hi, and thanks for this article.

As you said, there is still some stuff processed on the server if you simply add an {if} statement in the header.tpl. So yes, this should be a subject for a new tutorial :)

I&#039;m pretty new to Prestashop, and while this previous method seems simple, I read somewhere that you can add an if statement directly in the header.php and footer.php files, something like : 

&lt;code&gt;if (in_array($page_name , array(&#039;index&#039;))) $smarty-&gt;assign(&#039;HOOK_RIGHT_COLUMN&#039;,Module::hookExec
(&#039;rightColumn&#039;));&lt;/code&gt;

But in Prestashop 1.5.6, there is nothing in these two files, so I looked into FrontController.php (maybe not the right place ?) and around line 426 there are some hooks defined, but I have no idea how to alter them to display only on such and such pages. Could you enlighten me ?

Also, at the top of this same file, there is this :
&lt;code&gt;public $display_column_left = true;
	public $display_column_right = true;&lt;/code&gt;

If I make one of them false, then the class &quot;hide-left/right-column&quot; on the body is used to hide the column with display:none, but it applies to the entire website and not the single pages we want to target... Also using this method the modules don&#039;t appear in the code, unlike the CSS-only way, how is this working ?

Thanks in advance for any anwser.]]></description>
		<content:encoded><![CDATA[<p>Hi, and thanks for this article.</p>
<p>As you said, there is still some stuff processed on the server if you simply add an {if} statement in the header.tpl. So yes, this should be a subject for a new tutorial <img src="http://nemops.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>I&#8217;m pretty new to Prestashop, and while this previous method seems simple, I read somewhere that you can add an if statement directly in the header.php and footer.php files, something like : </p>
<p><code>if (in_array($page_name , array('index'))) $smarty-&gt;assign('HOOK_RIGHT_COLUMN',Module::hookExec<br />
('rightColumn'));</code></p>
<p>But in Prestashop 1.5.6, there is nothing in these two files, so I looked into FrontController.php (maybe not the right place ?) and around line 426 there are some hooks defined, but I have no idea how to alter them to display only on such and such pages. Could you enlighten me ?</p>
<p>Also, at the top of this same file, there is this :<br />
<code>public $display_column_left = true;<br />
	public $display_column_right = true;</code></p>
<p>If I make one of them false, then the class &#8220;hide-left/right-column&#8221; on the body is used to hide the column with display:none, but it applies to the entire website and not the single pages we want to target&#8230; Also using this method the modules don&#8217;t appear in the code, unlike the CSS-only way, how is this working ?</p>
<p>Thanks in advance for any anwser.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
