Forums / Customization from the Admin / Adding Pages to Information Box

Adding Pages to Information Box

Views: 32,638

Results 41 to 50 of 50
10 Feb 2008, 2:53 AM
#41
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Adding Pages to Information Box

Linda and others,
Maybe a slight digression from the original topic, but...
I have a number of pages I want to add. I actually want to create a sort of user friendly master Table of Contents or FAQ page to lead my users to other pages with explanations.
I have no problem using Define Pages or EZ Pages or simply editing the files in incudes/languages/english (which I assume can be overridden in includes/languages/english/MYTEMPLATE). The way I see it:

  1. Using Define Pages "automatically" adds the page to the information menu and is easy to edit with the admin editor, but requires a number of files to be created, not all of which go in an override folder.
  2. Using EZPages also has a built-in editor and I can create chapters with a TOC but the pages don't get included in the site map.
  3. Editing the language files requires an offline editor (no big deal) but can still accept XHTML with CSS. But if I create a new one, do I need to edit other files?
    Your suggestions and thoughts would be most welcome. TIA
10 Feb 2008, 3:00 AM
#42
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding Pages to Information Box

There is the EZ Pages TOC Sidebox that I added to the Downloads that you might look into ...

It lets you turn off the Center TOC in the middle of the EZ-Pages and the sidebox only shows when there is an existing TOC for the current EZPage that you have displayed ...

Otherwise, the sidebox will close and be out of the way ...

Handy position is Left or Right Top Position ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Feb 2008, 7:18 AM
#43
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Adding Pages to Information Box

Thanks, Linda
I already saw your TOC mod and was thinking of using it, but my client wants to minimize the number of side boxes. Whichever form I use for the pages, we will put the links to the other pages in the text of the main page for each section.

12 Feb 2008, 5:36 AM
#44
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Adding Pages to Information Box

Linda (or whoever cares to answer),
I have used About_Us and similar mods with great success. I have also used the Define Pages Generator which makes the job a breeze.
The one thing I don't see in any of these is how to add the new pages to the Admin>Configuration>Define Pages settings so I can enable/disable the pages.
Any help?

15 Feb 2008, 2:03 PM
#45
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Adding Pages to Information Box

mauryg:

Linda (or whoever cares to answer),
I have used About_Us and similar mods with great success. I have also used the Define Pages Generator which makes the job a breeze.
The one thing I don't see in any of these is how to add the new pages to the Admin>Configuration>Define Pages settings so I can enable/disable the pages.
Any help?

You'd need to write an SQL statement to insert the information into the database table.

An easier way would be to define it in the languages files for a particular mod.

Lets use the about Us mod.

open includes/languages/english/extra_definitions/YOUR_TEMPLATE/about_us.php

Add the following definition

define('DEFINE_ABOUT_US_STATUS', '1');

Hope this helps

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Feb 2008, 8:05 AM
#46
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Adding Pages to Information Box

Clyde,
I guess that define statement would turn the pages on, but as I read it, it wouldn't put the pages in the Admin Configuration menu to let you turn them on or off.
After I posted my question, I figured out the SQL part on my own and made a different change to put the links in the Information and More Information side boxes. I posted my method here:

http://www.zen-cart.com/forum/showthread.php?t=87367

13 Oct 2008, 11:04 PM
#47
bertito avatar

bertito

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Re: Adding Pages to Information Box

thanks! this worked!

bmhayes:

download the about us contribution

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=182

This will guide you for adding pages as well as how to insert the link into the information box. The read me should get you through this without many problems.

The contribution can be modified to be a page named whatever you want as well as have any content you choose.

27 Oct 2008, 10:19 PM
#48
tntwmom avatar

tntwmom

New Zenner

Join Date:
Aug 2008
Location:
Tennessee
Posts:
42
Plugin Contributions:
0

Re: Adding Pages to Information Box

I don't want to sound totally stupid here, but I'm definitely feeling that way!

I have added a page 5 to the english.php and to the define pages editor... page 5 shows up in the define pages editor... but it's not showing on my site.

I am TOTALLY lost with all the threads I've read about this... can anyone offer some more (simple) advice about what I may be doing wrong?... or not doing that I should be?

I would really appreciate any help offered!

Thanks! You guys and gals are all great! I usually get the help I need just browsing the threads, but I'm lost on this one! :frusty:

Shannon

Shannon

8 Jun 2010, 9:21 PM
#49
virtualburn avatar

virtualburn

New Zenner

Join Date:
Jun 2010
Posts:
1
Plugin Contributions:
0

Re: Adding Pages to Information Box

clydejones:

add links to your EZPages in the more_information sidebox as follows:

$more_information[] = '<a href="' . zen_ez_pages_link(1) . '">YOUR_LINK_TEXT</a>';

The highlighted portion is the ID of your EZpage.

This does sound like the easiest way to do this, but where do you add this line once you have created the ez-page?

26 Sep 2011, 4:21 PM
#50
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Adding Pages to Information Box

Hi folks,

I know there have been lots of discussion on how to easily add new pages into more-information section, and there was a post telling people how to do this:

add links to your EZPages in the more_information sidebox as follows:

$more_information[] = '<a href="' . zen_ez_pages_link(1) . '">YOUR_LINK_TEXT</a>';

The highlighted portion is the ID of your EZpage.

However, where is this file to be modified? Can someone shed more details on how and and where to do this? better step by step.:hug::hug:

Thank you very much.