Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Define Page 2, 3 Renaming

Define Page 2, 3 Renaming

Locked

Views: 5,744

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
30 Sep 2006, 2:28 PM
#1
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Define Page 2, 3 Renaming

Do I have to edit the file to rename the Page from Page 2 to a title for the Page or can I do that from the admin and I am not sure where to edit the <head> title, keyword and descriptions for the pages ? Can anyone guide me Thanks for your help.

30 Sep 2006, 4:20 PM
#2
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

I guess it is easy to change the files Page_N 's to the overide folder. Can I create more pages What flies I need to Copy and make 4, 5 or it is not that easy for a newbee like me

30 Sep 2006, 6:28 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define Page 2, 3 Renaming

If you require them in a box that exists then yes this requires editing the files and placing the edited file in you template override folders. If you want them in another sidebox you can create this in the admin using ezpages.

The titles are mostly in the english.php file

30 Sep 2006, 6:53 PM
#4
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

Yes I did the renaming and all worked well. I am trying to set up more pages. I duplicate all Page_4 files and edited as Page_5 + the define in admin folder. I still cannot see it in Admin ?

30 Sep 2006, 7:17 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define Page 2, 3 Renaming

Gosh, exercising my limited gray matter...

did you also edit all these files?

english.php
includes/languages/english/filenames.php

Clone of these files for your new pages
includes/modules/pages/your page name/ header_php.php
includes/languages/english/privacy.php
I think that this is it??

Unless you want to follow the html_includes model

30 Sep 2006, 9:44 PM
#6
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

I did all of that I see the new page (I called it Page_5) but in admin - Define Page status I do not see it to turn it on.

30 Sep 2006, 10:49 PM
#7
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

I can make it to show in the more information box if I remove the first line

if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}

How can I get it to turn on and off from admin

30 Sep 2006, 11:15 PM
#8
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Define Page 2, 3 Renaming

look for the About Us mod in the downloads to see how new pages are added.
I haven't tried creating new pages yet but I know it is not as easy as duplicating 1 file. there are multiple files involved in creating 1 new page.

30 Sep 2006, 11:53 PM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Define Page 2, 3 Renaming

gardengate:

I can make it to show in the more information box if I remove the first line

if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}

How can I get it to turn on and off from admin

look in admin -> configuration -> define page status and set to 3

1 Oct 2006, 12:09 AM
#10
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Define Page 2, 3 Renaming

gardengate:

I did all of that I see the new page (I called it Page_5) but in admin - Define Page status I do not see it to turn it on.

You'll have to run the following sql statement in order to get your page to show up in the define page status:

INSERT INTO configuration VALUES ('', 'Define Page 5', 'DEFINE_PAGE_5_STATUS', '3', 'Enable the Defined Page 5 Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 85, NULL, '0001-01-01 00:00:00', NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');

Just copy and past into admin -> tools -> install SQL patches and click the send button.

1 Oct 2006, 2:05 AM
#12
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

Worked like a charm.
Thank you all for your help. Now I can add the pages I need.
This is really the best cart around and This is the best support.
Thank you all for the quick help

1 Oct 2006, 11:35 AM
#13
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

Oops, when I enter verbal info in the define pages in admin for the new page and try to view it I get this erre
Warning: main(includes/languages/english/html_includes/amer_templates/): failed to open stream: No such file or directory in /home/httpd/vhosts/findaflorist.org/httpdocs/sendflowers/includes/templates/amer_templates/templates/tpl_page_5_default.php on line 21

The line 21 in the template is require($define_page);
as part of

<?php /** * require the html_define for the page_5 page */ ** require($define_page);** ?> </div> <?php } ?> Which file I missed? Can someone help?:lookaroun
1 Oct 2006, 11:43 AM
#14
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Define Page 2, 3 Renaming

you also need to set up these pages in:

includes -> modules -> pages -> page_5

Inside this file folder you need a file called header_php.php that contains the following code:

require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);

// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_5, 'false');
?>
1 Oct 2006, 11:50 AM
#15
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Location:
Cleveland
Posts:
79
Plugin Contributions:
0

Re: Define Page 2, 3 Renaming

Thanks Yes I just discovered it it was sent to "true" I reset it to false and all is well.** THANKS**