Zen Cart Logo
Forums / General Questions / How do EZ-Pages work?

How do EZ-Pages work?

Views: 245,832

Results 481 to 500 of 570
28 Oct 2011, 7:13 PM
#481
scriptjunkie avatar

scriptjunkie

Totally Zenned

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

How do EZ-Pages work?

To clarify for other readers - my "fix" is not so much a fix as a method - the only method I'm aware of to create a TOC.

In short, to create a TOC, I have always had to create a page of text links to all the pages in a chapter that make up the TOC. This page is always TOC sort order 1.

The next step then is to assign a TOC sort order of 2, 3, 4, and so on to each of the pages in the chapter that comprise the TOC. Here is an example of the TOC that results from using this method.

I have never seen my cart automatically create a TOC simply based on EZ page settings alone. Actual content on the first page of the TOC has always been required for the TOC to be created.

In idc's case...when he creates several EZ pages in the same chapter and assigns them a TOC sort order, the TOC automatically appears in his store so long as the pages that make up the TOC are text based. If the pages that make up the TOC are links - then the TOC is not automatically created.

I don't know how idc's TOC is being automatically created under some circumstances but not under other circumstances, so I can't speak to that and whether or not it's a bug or intentional on the part of the programmers.

14 Apr 2012, 10:28 PM
#482
addvant avatar

addvant

New Zenner

Join Date:
Aug 2005
Location:
NJ, USA
Posts:
35
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hey, Have issue with the TOC on ver 1.5 with Hebrew language installed.
The TOC was working, however we had issues related to the Hebrew encoding. after we resolved the Hebrew issue (mainly on ie) we have may changed something that we shouldn't that caused the TOC (Table of content) and the EZ-Pages related to it to not show - only the 1st TOC is there but no table.
The issue exist on both Hebrew and English and on any template including the Classic.
Previously we had issue when we had some code related to the current/non_current.
The other issue we currently have is with side box header for the ez-pages that show: BOX_HEADING_EZPAGES Only in Hebrew.

We have tried to debug following the https://www.zen-cart.com/tutorials/index.php?article=82 with no luck - nothing was found.
Site address is www.addvant.co.il
Thanks in advance for your help.

17 Apr 2012, 7:54 AM
#483
addvant avatar

addvant

New Zenner

Join Date:
Aug 2005
Location:
NJ, USA
Posts:
35
Plugin Contributions:
0

Re: How do EZ-Pages work?

Update on the above EZ-Pages TOC not functioning.
It was really strange, we build the whole site and it was much better we didn't really find the source of the issue. However, we should recommend the following to thous who uses the Hebrew on 1.5 version (and may other languages) before working on your template to first change the "utf8" on both includes/configure.php and admin/includes/configure.php to "utf-8" and only after to do modification.

Enjoy the day :smile:

29 May 2012, 7:39 PM
#484
willuw avatar

willuw

New Zenner

Join Date:
May 2012
Posts:
12
Plugin Contributions:
0

Re: How do EZ-Pages work?

Is there a way to prevent ez-pages from having their title affixed to the beginning of the stores title?

Example: I have an EZPage named FAQ and a store named Bob's Store - The title shown in then browser bar is: FAQ - Bob's Store.

For consistencies sake - I would prefer to keep the title as just Bob's Store on all ezpages. Can this be done?

29 May 2012, 9:44 PM
#485
ajeh avatar

ajeh

Oba-san

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

Re: How do EZ-Pages work?

Using your templates and overrides, you can use the:
/includes/languages/english/meta_tags.php

and copy to your templates and overrides directory:
/includes/languages/english/meta_tags.php

and customize the section of code:

// EZ-Pages meta-tags.  Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
// If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
// (ie: the Title tag is best not set, so that site-wide defaults can be used.)
// repeat pattern as necessary
  define('META_TAG_DESCRIPTION_EZPAGE_#','');
  define('META_TAG_KEYWORDS_EZPAGE_#','');
  define('META_TAG_TITLE_EZPAGE_#', '');
30 May 2012, 2:12 PM
#486
willuw avatar

willuw

New Zenner

Join Date:
May 2012
Posts:
12
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hi,
I actually already played around with this and it doesn't seem to effect anything. I have left it blank and put in the same title I would like to keep - yet it still keeps appending the page name to the title.
:frusty:

Ajeh:

Using your templates and overrides, you can use the:
/includes/languages/english/meta_tags.php

and copy to your templates and overrides directory:
/includes/languages/english/meta_tags.php

and customize the section of code:

30 May 2012, 2:35 PM
#487
ajeh avatar

ajeh

Oba-san

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

Re: How do EZ-Pages work?

Do you have an example of what you tried and the path to the file that you made the changes to?

30 May 2012, 2:40 PM
#488
willuw avatar

willuw

New Zenner

Join Date:
May 2012
Posts:
12
Plugin Contributions:
0

Re: How do EZ-Pages work?

I have tried leaving it blank and it still fills in the title. I have also tried:

define('META_TAG_TITLE_EZPAGE_#', 'One Breath Freediving Apparel');

With no luck either. I have tried editing the original file and of course the override in includes/languages/english/custom

30 May 2012, 2:51 PM
#489
ajeh avatar

ajeh

Oba-san

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

Re: How do EZ-Pages work?

Did you try changing the # with the page_id for the EzPage that you are changing?

30 May 2012, 2:52 PM
#490
willuw avatar

willuw

New Zenner

Join Date:
May 2012
Posts:
12
Plugin Contributions:
0

Re: How do EZ-Pages work?

Ajeh:

Did you try changing the # with the page_id for the EzPage that you are changing?

Not sure what you mean

30 May 2012, 2:56 PM
#491
ajeh avatar

ajeh

Oba-san

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

Re: How do EZ-Pages work?

If you look in the URL for this EzPage, you will see something like id=3 ...

You should then make a define for it that reads:

  define('META_TAG_TITLE_EZPAGE_3', 'something');
30 May 2012, 2:58 PM
#492
willuw avatar

willuw

New Zenner

Join Date:
May 2012
Posts:
12
Plugin Contributions:
0

Re: How do EZ-Pages work?

That works for some reason...I guess I have to specify a title for each page I make then..

30 May 2012, 3:15 PM
#493
ajeh avatar

ajeh

Oba-san

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

Re: How do EZ-Pages work?

That is how it is designed so you can make custom titles ...

You could try customizing the:
/includes/modules/meta_tags.php

using your templates and overrides for:
/includes/modules/your_template_dir/meta_tags.php

and customize this code:

// EZ-Pages:
  case 'page':
  $ezpage_id = (int)$_GET['id'];
  $chapter_id = (int)$_GET['chapter'];
  if (defined('META_TAG_TITLE_EZPAGE_'.$ezpage_id)) define('META_TAG_TITLE', constant('META_TAG_TITLE_EZPAGE_'.$ezpage_id));

to read:

// EZ-Pages:
  case 'page':
  $ezpage_id = (int)$_GET['id'];
  $chapter_id = (int)$_GET['chapter'];
  if (defined('META_TAG_TITLE_EZPAGE_'.$ezpage_id)) {
    define('META_TAG_TITLE', constant('META_TAG_TITLE_EZPAGE_'.$ezpage_id));
  } else {
    define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : ''));
  }
  if (defined('META_TAG_DESCRIPTION_EZPAGE_'.$ezpage_id)) define('META_TAG_DESCRIPTION', constant('META_TAG_DESCRIPTION_EZPAGE_'.$ezpage_id));
2 Sep 2012, 11:27 PM
#494
petepdx avatar

petepdx

New Zenner

Join Date:
Jul 2012
Posts:
22
Plugin Contributions:
0

Re: How do EZ-Pages work?

I just install 1.5

The first thing I want to do is create a entry in the "Information" box with the title "About Us"

I created a new Ez-page called About Us tools->Ez-pages

  1. About Us Sidebox 50, TOC 50
    I craeted a 2nd page
  2. Dummy Test File Sidebox 100, TOC 100

Checked Configuration->Ez-pages Settings
EZ-Pages Display Status - Sidebox = 1

On the upper right there is a box "Important Links" where the "pages" are showing up,

HOW DO I GET THEM TO APPEAR IN "Information" ?

Am I doing something wrong ?

I then tried to change Page-2 in the "More Information" box to be "About Us", I have found no less then 9 'how to do it' but if you do exactly what they say to do it does not change.

I'll toss another question in, how do I add a page to "Information", I dont want "Important Links" or "More information"

3 Sep 2012, 12:52 AM
#495
petepdx avatar

petepdx

New Zenner

Join Date:
Jul 2012
Posts:
22
Plugin Contributions:
0

Re: How do EZ-Pages work?

i decided to take someone elses idea, put all the ZenCart "Information" pages I want under "Important Links", turn off Information, rename "Important Links" to "Information", now just hope I can move it to the left size

25 Nov 2012, 3:11 AM
#496
pearcestephens avatar

pearcestephens

New Zenner

Join Date:
Nov 2012
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

Hey Guys,

Im getting a HTTP Error 500 (Internal Server Error) when I click any ezpages link in the sidebox..Im assuming iv touched something by mistake but have no idea why, it doesnt matter if i have content in there or no content in the ezpages, just always error 500.

Has anyone else had this same problem before? Iv checked my error logs and there is nothing regarding the error

26 Nov 2012, 10:40 PM
#497
pearcestephens avatar

pearcestephens

New Zenner

Join Date:
Nov 2012
Posts:
69
Plugin Contributions:
0

Re: How do EZ-Pages work?

bump anybody got any clues?

27 Nov 2012, 4:34 AM
#498
scriptjunkie avatar

scriptjunkie

Totally Zenned

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

Re: How do EZ-Pages work?

Start your research with this Zen Cart support article

PearceStephens:

bump anybody got any clues?

27 Nov 2012, 7:24 AM
#499
gjh42 avatar

gjh42

Black Belt

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

Re: How do EZ-Pages work?

ScriptJunkie:

...
In idc's case...when he creates several EZ pages in the same chapter and assigns them a TOC sort order, the TOC automatically appears in his store so long as the pages that make up the TOC are text based. If the pages that make up the TOC are links - then the TOC is not automatically created.

I don't know how idc's TOC is being automatically created under some circumstances but not under other circumstances, so I can't speak to that and whether or not it's a bug or intentional on the part of the programmers. For clarification to anyone confused by the appearance or absence of certain ez-page links in the TOC, the code is designed to exclude ez-pages that are internal or (obviously) external links, regardless of the TOC setting in the ez-page edit page. This is apparently done to protect users from showing a link in a TOC which, if visited, cannot automatically retain the TOC and will effectively dump the reader out of the chapter.

EZ-Page Improved TOC in Plugins specifically allows the inclusion of internal links in a TOC, with the understanding that if you want to include internal links and keep the chapter structure, you will have to manually create a "TOC" menu in the linked page to replicate the effect you would see if it were an ez-page. For example, you could include an internal link to a product or chapter in a TOC, with the static TOC menu added to the top of the product/category description. This would not make sense for an ordinary catalog item, but sometimes a product or category will relate inherently to a chapter and not be accessible by the normal catalog structure. For example, in the festival site https://www.nyfaeriefest.com the Artists/Vendors page is an ez-page, with TOC links to an application form and a booth fees page. The application is a "product", while booth fees is a category page. Each of these pages has a hard-coded "TOC" in its description for easy navigation back to the other related pages.

7 May 2013, 4:46 AM
#500
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: How do EZ-Pages work?

I am tying to get a Table of contents for the following pages:
Chapter 100, TOC 10 - How To Do Things?
Chapter 100, TOC 20 - How To Do A?
Chapter 100, TOC 30 - How To Do B?
Chapter 100, TOC 40 - How To Do C?

Parameters set are:
Open New Window: Off, Page is SSL: OFF, Header: OFF, Sidebox: OFF and Footer: OFF
admin > Configuration > EZ-Pages Settings > EZ-Pages Table of Contents for Chapters Status is set yo 1.

I am not getting the Table of contents. Is there another setting that has to be turned on?