Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / EZpage and TOC modification

EZpage and TOC modification

Locked

Views: 2,075

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
11 May 2009, 8:09 PM
#1
music_man avatar

music_man

Zen Follower

Join Date:
Apr 2009
Posts:
188
Plugin Contributions:
0

EZpage and TOC modification

Hello...

I've just discovered EZpages thanks to Kim....:smile:...I have a question after an hour of looking to no avail.......can you center the Table of Contents on an EZpage and move the text below it?

Thanks

MM

11 May 2009, 8:23 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: EZpage and TOC modification

You can do lots of things to it using your stylesheet. Look in view source to find the classes/ids that apply to the TOC, find in or add to your stylesheet and style them.```php

<div id="navEZPagesTOCWrapper"> <h2 id="ezPagesTOCHeading"><?php echo TEXT_EZ_PAGES_TABLE_CONTEXT; ?></h2> <div id="navEZPagesTOC"> <ul> <?php while (!$pages_listing->EOF) { // could be used to change classes on current link and toc (table of contents) links ```
12 May 2009, 2:09 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: EZpage and TOC modification

There is also a nice handy dandy sidebox in the Free Software Add Ons for the EZpages Table of Contents so that the TOC isn't sitting in the middle of the page ... :smile:

13 Jul 2009, 7:10 PM
#4
smarmyclothes avatar

smarmyclothes

New Zenner

Join Date:
Feb 2009
Posts:
36
Plugin Contributions:
0

Re: EZpage and TOC modification

Did you ever figure out how to do this?

I've done everything I can think of in the stylesheet and even the template, and my TOC box is still aligned to the left. :yuck:

Here's my site: http://smarmyclothes.com/index.php?main_page=page&id=3&chapter=1

And here's the CSS I've got for the EZPages TOC currently:

#navEZPagesTOCWrapper {
	margin: 5px 10px 2px 5px;
	border: 2px dashed #000000;
	text-align: center;
	width: 400px;
	}
14 Jul 2009, 4:15 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: EZpage and TOC modification

#navEZPagesTOCWrapper {
	margin: 5px auto 2px auto;
	border: 2px dashed #000000;
	text-align: center;
	width: 400px;
	}
14 Jul 2009, 4:39 AM
#6
smarmyclothes avatar

smarmyclothes

New Zenner

Join Date:
Feb 2009
Posts:
36
Plugin Contributions:
0

Re: EZpage and TOC modification

Ahhhhh! I knew it would be something silly like that!

Thank you so much, Glenn!!

2 Jan 2010, 5:24 AM
#7
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: EZpage and TOC modification

I am curious as to how to remove the characters in my Table Of Contents list? It looks like a list-style-type, but I can't seem to get rid of them.

VIEW HERE

3 Jan 2010, 3:04 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: EZpage and TOC modification

Those are coded output characters, built in the PHP file.
The CURRENT_PAGE_INDICATOR and NOT_CURRENT_PAGE_INDICATOR constants can be redefined in the appropriate language file to '' (two single quotes) to make them disappear.

The EZ-Page Improved TOC mod will let you style the TOC any way you want, though it does not give a separate class to the indicators.

3 Jan 2010, 3:38 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: EZpage and TOC modification

I have just submitted an updated version (1.1) of the mod which will allow separate control over styling of the indicators. If anyone wants it before it is activated in Free Addons, just let me know.

6 Mar 2010, 4:38 AM
#10
bbbags avatar

bbbags

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

Re: EZpage and TOC modification

Hi,

I've got the same problem and here's what I've got for my CSS

#navEZPagesTOCWrapper {
margin: 5px auto 2px auto
font-weight: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
height: 5%;
border: none;
text-align: center;
}

Is there something that I'm doing wrong? You can view it on:
http://www.justuskids.com.au/eshop

Any help is greatly appreciated. THANKS! :)

6 Mar 2010, 4:39 AM
#11
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: EZpage and TOC modification

You are genius! You have helped me much throughout my learning curve of ZenCart. :D

8 Mar 2010, 1:36 PM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: EZpage and TOC modification

bbbags - I don't see the TOC being used anywhere.

5 Apr 2010, 9:44 AM
#13
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: EZpage and TOC modification

Another stupid ezpageTOC question...how do I force the height to be 100%? I don't like how it wraps text around.

EXAMPLE

I'd like a more formatted look with TOC taking up the whole left side, and the content taking up the right.

OR

get the TOC to display horizontally across the top of the page, with the content below.