Zen Cart Logo

Ez pages and toc

Locked

Views: 2,972

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
14 Apr 2010, 9:09 PM
#1
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Ez pages and toc

Hello, I recently watched a video on youtube explaining how to use the TOC and chapter settings. I understood everything and have been doing it correctly since the table is created. My 2 questions regard the style and internal links. I have posted the link to the video below so you can see what i mean.

http://www.youtube.com/watch?v=hllTXz-c_r0

  1. In the video her table of contents is in a small box to the side and the pages show up in the same page when you click the links. Is this a format you have to create through html with tables or is this edited in css ?

  2. We can make ez pages link to an internal link for instance the "contact us" in the header when we click it to link to index.php?main_page=contact_us ... but say for instance i want to get rid of the contact us from the header and just put it into a (TOC) in say the "FAQ" page instead... which is what I'm trying to do ... i want to basically have shipping, privacy etc, all in a table of contents under the "FAQ" page... but it seems that when i give those pages an internal link to point to at they disappear from the table of contents menu ?

thank you.

14 Apr 2010, 11:25 PM
#2
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Ez pages and toc

1). In the stylesheet. Search it for TOC.

2.) Did you give each page the same TOC setting, and a different chapter number? ie: TOC 10 - Chapter 10; TOC 10 - Chapter 20, etc.

15 Apr 2010, 12:03 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

say for instance i want to get rid of the contact us from the header and just put it into a (TOC) in say the "FAQ" page instead... which is what I'm trying to do ... i want to basically have shipping, privacy etc, all in a table of contents under the "FAQ" page...

This is one of the features of EZ-Page Improved TOC.

15 Apr 2010, 12:55 AM
#5
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

Hi TShooters and gjh42 .. thnx for the reply ...

in my ez pages i have:

FAQ - CHAPTER: 10 TOC: 10
PRIVACY NOTICE - CHAPTER 10 TOC:20
CONTACT US - CHAPTER: 10 TOC: 30

In the table of contents "faq" and "privacy notice" show but i don't have them linked in anyway ... but "contact us" i have internal link to the contact us page and doesn't show ... if i rid the internal link it shows .. i will try the add- ons and see if that helps me out first ... and for the css part i found the TOC area and shifted it to float right ,,, but now the heading "table of contents" is larger than the box itself ... do i look for that aswell in css the same way? thnx so much TShooters and gjh42 ...

15 Apr 2010, 1:00 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

Yes, you need the Improved TOC mod to get internal links to show in the TOC. They are intentionally disabled in the stock version, I believe to safeguard people from trying to use a prev/next page function which would fail if it hit an internal link instead of another real ez-page. The mod removes that safeguard, so you need to be aware and use the ez-page functions carefully.

21 Apr 2010, 1:24 AM
#7
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

Hello TShooters and gjh42 Thanks for the repies again ...

I haven't been back cause I tried out the add-ons ... i got it to work ! ... it does what i'm looking for just need to work on the css to place it properly ... the only thing now is that i actually like the sidebox add-on :) ... it makes sense to just have the TOC gone and use a sidebox while on that page only ... but lol .. now the same problem occurs with the external links like before. If I disable the sidebox add-on and just use Improved TOC add-on ... external links work great ... but i have to remove external links if i want to even see the links show up in sidebox TOC ,,, it disappears from the box. Have you guys tried this out ? maybe I need to tweak my settings ? tried different on and off tweaks in layout boxes controller, e-z pages settings, and e-z pages ... or maybe there's an add-on for this too ? Thank You ... :smile:

21 Apr 2010, 1:28 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

It would require transplanting the code from the Improvrd TOC mod to the sidebox mod - the existing sidebox will not display internal or external links ever.

21 Apr 2010, 1:43 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

/includes/modules/sideboxes/ez_pages_toc.php has this SQL query which excludes internal and external links:```php
$pages_order_toc_query = "SELECT *
FROM " . TABLE_EZPAGES . "
WHERE ((status_toc = 1 and toc_sort_order <> 0) and toc_chapter= :chapterID )
AND alt_url_external = '' and alt_url = ''
ORDER BY toc_sort_order, pages_title";

AND alt_url_external = '' and alt_url = ''
line and it should fetch all relevant pages.
6 May 2010, 9:16 PM
#10
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

gjh42 ... thnx so much ... i will try it out right now ,,, didn't see this post till now .. :)

6 May 2010, 9:52 PM
#11
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

gjh42 ... WORKS GREAT !

But ofcourse there's always more and more tweaking to be done as you change one thing. The TOC sidebox dissapears completely as i click on a link (the one's with internal links) So i have to use a back button ... Is there a way to keep the sidebox still ... thnx !

7 May 2010, 1:38 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

The TOC sidebox module file has logic that makes it only show when on an ez-page. You would need to alter this logic so that it shows when on one of the internal linked pages.

Another thing you could do is set all internal/external links to open in a new window. That way, when the user is done with the page, they can close the window/tab and have the original still there. This is definitely a workaround, not a real solution.

11 Jun 2010, 6:53 PM
#13
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

that actually sounds like a good workaround .. i'll try that out first ... im not good at code so i'll start ther first ... thnx !

11 Jun 2010, 6:59 PM
#14
djbelize avatar

djbelize

New Zenner

Join Date:
Mar 2010
Posts:
32
Plugin Contributions:
0

Re: Ez pages and toc

gjh42 ... tried that out and doesn't work at all ... doesn't pop up in new window ... i'm on localhost so popup blocker wouldn't be a cause ... any suggestions ? thnx...

11 Jun 2010, 7:32 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: Ez pages and toc

I have no suggestions on that, because I do get a new window when clicking an ez-page link set for that. I haven't used the sidebox mods described, so can't say for sure that it will behave the same way.