Forums / Templates, Stylesheets, Page Layout / adding multiple pages to define page editor

adding multiple pages to define page editor

Started by dirtbikerzap on 10 Feb 2011, 7:36 PM · Views: 2,008

Results 1 to 14 of 14
10 Feb 2011, 7:36 PM
#1
dirtbikerzap avatar

dirtbikerzap

New Zenner

Join Date:
Feb 2011
Posts:
8
Plugin Contributions:
0

adding multiple pages to define page editor

OK this is the deal. i cant figure out how to add pages to define page editor. i have added ez pages and used up all the open pages on define page editor (ex page_2 page_3) ect.

how can i add about 10 more pages to the define page editor list that will link up with my template and all the links?

Im using 1.3.9 if it matters,

ive tired going into file manager and copying pages but it doesnt work.

To be honest i dont really know what im doing here, but im pretty good at figuring stuff out eventually.

thanks.

19 Sep 2011, 12:47 AM
#3
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

I spent the last 10 hours trying to figure out why my new pages in Define Pages editor will not display. All I get is the main page when I try to go to the pages.

Pages 2-3-4 work okay. And my new pages appear in the drop down menu. I can edit the pages and save them but the html will not appear when called. I dont even get the breadcrumb title like I do with 2-3-4.

I did everything exactly like the pdf file instructed me to do and I can not get it working.

Database shows all pages 2 thru 10 with the exact same settings.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

20 Sep 2011, 2:29 PM
#5
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

20 Sep 2011, 4:16 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: adding multiple pages to define page editor

Admin->Configuration->My Store->Missing Page Check ... turn it off so it can show you the error it's encountering instead of doing the user-friendly thing and redirecting to the home page.
Likely the page folder doesn't exist under /includes/modules/pages/

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Sep 2011, 1:51 AM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

Made changes to my store.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

21 Sep 2011, 9:20 PM
#8
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

DrByte:

Admin->Configuration->My Store->Missing Page Check ... turn it off so it can show you the error it's encountering instead of doing the user-friendly thing and redirecting to the home page.
Likely the page folder doesn't exist under /includes/modules/pages/

Made the change as requested.

FYI I also created a page 6 but for some reason I get 500 error.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

22 Sep 2011, 4:11 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: adding multiple pages to define page editor

Page 5 for example only draws part of the screen, and then halts ... typical blank-page scenario, caused by a PHP error: https://www.zen-cart.com/tutorials/index.php?article=82

And, for 500 errors, see your server's system logs: https://www.zen-cart.com/tutorials/index.php?article=63

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Sep 2011, 12:30 AM
#10
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

DrByte:

Page 5 for example only draws part of the screen, and then halts ... typical blank-page scenario, caused by a PHP error: https://www.zen-cart.com/tutorials/index.php?article=82

should I be adding the extra pages to mytemplate/templates or template_default/templates or both?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Sep 2011, 12:54 AM
#11
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

here is the text from tpl_page_2_default.php in template_default/templates.

<?php /** * tpl_page_2_default.php * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_page_2_default.php 3464 2006-04-19 00:07:26Z ajeh $ */ ?> <div class="centerColumn" id="pageTwo"> <h1 id="pageTwoHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?> <div id="pageTwoMainContent" class="content"> <?php /** * load the html_define for the page_2 default */ require($define_page); ?> </div> <?php } ?> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> </div>

Do all of the RED numbers get incremented to whatever page I am creating?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Sep 2011, 1:03 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: adding multiple pages to define page editor

Yes, they do, or else you will have constants and element ids controlling pages they should not affect, and not able to distinguish between different pages.

23 Sep 2011, 1:56 AM
#13
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: adding multiple pages to define page editor

Im not really up on div tags. Are all of those div tags arbitrary names or are they defined somewhere else?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Sep 2011, 3:03 AM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: adding multiple pages to define page editor

The text in quotes ' ' is being defined right where you see it. The text in ALL_CAPITALS is constants, which are defined in language files. The names are not arbitrary; some of them at least must have certain structures to work with the Zen Cart file and code system.