Zen Cart Logo
Forums / General Questions / EZ pages Chapter/TOC query

EZ pages Chapter/TOC query

Views: 491

Results 1 to 4 of 4
4 Mar 2021, 5:53 AM
#1
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

EZ pages Chapter/TOC query

v1.5.7b PHP7.3 responsive classic template

I have read this document https://docs.zen-cart.com/user/ezpages/what_are_ezpages/#chapter-and-toc and followed the process. admin/configuration/EZ pages configuration settings are set correctly so as to allow chapter and TOC status and previous next status.

No TOC or previous/continue/next is showing on the published pages that share the same chapter and have sequential TOC numbers entered in admin/tools/ez_pages (chapter 1 TOC 1,2)- can someone offer a hint as to how I might resolve this?

cheers,
Mike

4 Mar 2021, 7:29 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: EZ pages Chapter/TOC query

In demo data, the URL to the sample set of EZ-Pages with TOC and prev/next nav is:

index.php?main_page=page&id=1&chapter=10

The &chapter= parameter is auto-generated by the ez-pages-header module because it looks up whether the TOC applies.

If your implementation has manually-entered URLs or created by some other URL generator, then you won't get the TOC nav when the page URL is without the &chapter= value,

5 Mar 2021, 6:48 AM
#3
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: EZ pages Chapter/TOC query

DrByte:

In demo data, the URL to the sample set of EZ-Pages with TOC and prev/next nav is:

index.php?main_page=page&id=1&chapter=10

The &chapter= parameter is auto-generated by the ez-pages-header module because it looks up whether the TOC applies.

If your implementation has manually-entered URLs or created by some other URL generator, then you won't get the TOC nav when the page URL is without the &chapter= value,

Many thanks DrByte, I appreciate your quick response and great advice - I am using CEON URI Mapping with default url creation - so unticked that for the appropriate pages and all is good, works a treat.

cheers, Mike

6 Mar 2021, 10:46 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EZ pages Chapter/TOC query

shags38:

Many thanks DrByte, I appreciate your quick response and great advice - I am using CEON URI Mapping with default url creation - so unticked that for the appropriate pages and all is good, works a treat.

cheers, Mike
Umm. Not sure what you mean by working "differently" between using the uri rewriter and not. I went to a demo cart with Ceon URI rewriter installed and one that doesn't. Initially in both I went to the suggested index.php?min_page=page?id=1&chapter=10 and saw the prev/next options in the center of the screen.

I then went into the Ceon enabled store and set the auto-generated uri for the same link. The generated link was ezpages without anything after it.

Went to the page using just the auto-generated link and the options were not present.

I then entered the full page from above to the Ceon related site: index.php?main_page=page&id=1&chapter=10 and it redirected to ezpages?chapter=10. So I went to the non-Ceon store and entered index.php?main_page=page&id=1 (without the chapter) and had the same "result" of no prev/next options.

I then also found that the menu offered an "Ezpages" link under the additional links menu option. For the Ceon site, the link included ezpages?chapter=10, for the other site it was as DrByte provided.

So... again, I wonder what it is/was that was expected to be different considering the same end result is available both with and without Ceon URI enabled...