If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Can I move a page out of the More Information sidebox?

Can I move a page out of the More Information sidebox?

Locked

Started by rstevenson on 11 Dec 2006, 12:21 AM · Views: 1,599

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Dec 2006, 12:21 AM
#1
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Can I move a page out of the More Information sidebox?

Hi folk,

I've renamed the default Page 2 to About Us and it shows in the More Information sidebox. But I want that page to be in the Information sidebox so I can then make the More Info box go away (I know how to do that.)

All hints gratefully accepted.

TIA

Rob

Breakfast: the most important donut of the day.

11 Dec 2006, 7:32 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can I move a page out of the More Information sidebox?

Never mind. I worked out how to do it -- manually anyway -- by editing the information.php file. Would have been handy to do it in admin, but I guess we can't have everything.

On to the next question!

Rob

Breakfast: the most important donut of the day.

13 Dec 2006, 1:31 AM
#3
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Can I move a page out of the More Information sidebox?

Can you share what you edited in order to do this? I've been trying to figure out how to do the same thing.

Ellie

Ellie Armsby

13 Dec 2006, 2:48 AM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can I move a page out of the More Information sidebox?

Yes indeed... without any warranty whatsoever, implied or expressed, YMMV. ;-)

In Includes/Modules/Sideboxes find and open in your fave editor both information.php and more_information.php.

In more_information.php copy the lines that say...
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}

...and paste them into information.php around line 26 (in my case; zen v1.3.6)
and edit it to look like (changed part in red)...

if (DEFINE_PAGE_2_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}

That little change will do it.

I also changed the name of page 2 in Includes/Languages/english.php, like so, at line 144...

define('BOX_INFORMATION_PAGE_2', 'About Us');

If you're continuing to use the More Info box, you'll need to comment out (or delete) the page 2 stuff from the more_information.php file, but I was just going to turn off More Info in the admin, so I didn't bother.

HTH

Rob

Breakfast: the most important donut of the day.

13 Dec 2006, 2:35 PM
#5
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Can I move a page out of the More Information sidebox?

Thanks Rob! That did the trick!

Ellie Armsby

27 Dec 2007, 8:18 PM
#6
shamis avatar

shamis

New Zenner

Join Date:
Dec 2007
Posts:
57
Plugin Contributions:
0

Re: Can I move a page out of the More Information sidebox?

Thanks as well. Over a year later and it's still doing the trick:D