Forums / Templates, Stylesheets, Page Layout / TO DISPLAY right column ONLY on main page (??)

TO DISPLAY right column ONLY on main page (??)

Locked

Views: 1,531

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Aug 2007, 2:27 AM
#1
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

TO DISPLAY right column ONLY on main page (??)

Hi - it may sound silly, but I can't find out the easy way of SHOWING right column ONLY on the main page: in tpl_main_page, there are lots of good ideas but it is only related to "how to NOT" - except the statement starting with "if (in_array($current_page_base,explode("...." (~ line 83)

Now, if I want to display right column ONLY on main page, then I will have to list all other pages in that statement - that's seems like a lot of pages.... is there any other, simplier way?

Thanks,

Best,

0100000101011010

---------------------------------
It's not magic, it's just math!

20 Aug 2007, 2:52 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: TO DISPLAY right column ONLY on main page (??)

Easy - just reverse the statement.

if (!$this_is_home_page) {
  $flag_disable_right = true;
}

The "!" before $this_is_home_page is a negative, so the test will be true (and the flag set) if it is not home page.

20 Aug 2007, 3:46 AM
#3
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: TO DISPLAY right column ONLY on main page (??)

Duh! :laugh: - thanks!

Best,

0100000101011010

---------------------------------
It's not magic, it's just math!