Zen Cart Logo
Forums / Customization from the Admin / How to add pages to define page status?

How to add pages to define page status?

Locked

Views: 53,479

Results 1 to 20 of 66
This thread is locked. New replies are disabled.
10 Oct 2006, 12:00 PM
#1
wolf99 avatar

wolf99

Zen Follower

Join Date:
Sep 2006
Location:
West of Ireland
Posts:
169
Plugin Contributions:
0

How to add pages to define page status?

Hi

How can I add pages to the list in define pages editor? currently some pages like shopping_cart.php are not showing in the listing.
Would have thought that "adding" pages in define pages stsus would do this, but no "add page" or "insert" button.

also, I have page2,3 and 4 turned off in define pages status but they still show ini define pages editor lisiting, how can I remove them completely?

Thanks

10 Oct 2006, 12:38 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to add pages to define page status?

If you are using 1.3+ you can just use ez-pages, does the same thing and sets up dynamically

10 Oct 2006, 12:55 PM
#3
wolf99 avatar

wolf99

Zen Follower

Join Date:
Sep 2006
Location:
West of Ireland
Posts:
169
Plugin Contributions:
0

Re: How to add pages to define page status?

but this page(shopping_cart.php) is already "created".
will creating it again in EZ pages muck that up?

10 Oct 2006, 1:17 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to add pages to define page status?

to add define pages you will need to remember to call the define page where you want the information to appear.

you would create the define page just like the others,
it should now appear in the list with the others

and will display wherever you add the define page code

18 Oct 2006, 5:40 PM
#5
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: How to add pages to define page status?

Quick question on this... I'm adding pages using the same method used for About Us. With the new version, to add the define in the admin config - are there any other files "other" than the normal list of files to add a page - that I need to address? Obviously I need to add a define to the config table for then new pages, and I've copied the format for the new tpl_default - calling for the on/off in the admin - but I wasn't sure if there were any other new files that needed to be modifed to carry that through... thought maybe you could give me a short answer before I ran a file search.

By the way this is a rewrite of an existing osC cart so I need to move these More Information pages across in this manner vs. using easy pages. I have specific About us and information pages setup in a separate box - I've already used Page 2, 3 & 4.

Thanks

3 Apr 2007, 6:06 PM
#6
bostitch avatar

bostitch

New Zenner

Join Date:
Mar 2007
Posts:
33
Plugin Contributions:
0

Re: How to add pages to define page status?

I am setting up a site using v 1.3.7. I have all of the custom pages set up in the Define Pages Editor, and they are all displaying and working fine.

So how do I get these pages to appear in the Define Page Status? I have included all of the pages in the tpl_site_map_default.php file, (with the appropriate configuration settings) yet none of the pages show up in the Define Page Status section of the admin panel. Only the default files that were part of the install show up in the Define Page Status section.

How do I get rid of the default files in the Define Page Status, and get the custom pages that are in my Define Pages Editor to appear here?

Am I missing something? Or is there a disconnect between the Define Pages Editor and the Define Pages Status?

3 Apr 2007, 6:58 PM
#7
clydejones avatar

clydejones

Deceased

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

Re: How to add pages to define page status?

What pages ae you talking about?

How do I get rid of the default files in the Define Page Status, and get the custom pages that are in my Define Pages Editor to appear here?

The first part of this question is not a good idea. As for the second part, You'd need to write an SQL script to include your custom pages in the database.

10 Apr 2007, 3:05 PM
#8
marcap avatar

marcap

Zen Follower

Join Date:
Mar 2007
Posts:
106
Plugin Contributions:
0

Re: How to add pages to define page status?

Hello
I just created a new page, pages 2,3 and 4 are been used and now I have my new link to page 5 that it is completly empty.

I did something that for sure is something wrong 'cause it is not working: I renamed one of the others as define_page_5.php and I can see it in the Admin>>Tools>>Define Page Editor with some text in it (the one that for default is in all the pages) but when I look at my new page "live" it is completly empty.

Where am I wrong? Thanks.

16 Apr 2007, 3:55 AM
#9
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: How to add pages to define page status?

clydejones:

You'd need to write an SQL script to include your custom pages in the database.

How would one go about writing the sql script to add the new custom page to admin->configuration->define pages status?

16 Apr 2007, 6:32 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How to add pages to define page status?

If you add the define files correctly, with a copy in the:
/includes/languages/english/html_includes

And your real files in the:
/includes/languages/english/html_includes/your_template_dir

These are auto loading and self building on the Define Page Editor ... in other words ... not extra coding required to add them ... :smile:

16 Apr 2007, 10:19 PM
#11
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: How to add pages to define page status?

Once I get the page created, and working, how can I call the manufacturer list so that all the manufacturers will display on the new defines page?

18 Oct 2007, 5:54 PM
#12
strategy avatar

strategy

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Re: How to add pages to define page status?

I am trying to add an "about us" page to "define pages". (I dont want to use ez pages for this)

I have completed the following steps.

========================

  1. created file..

    /includes/languages/english/html_includes/mytemplate/define_about.php

  2. created file..

    /includes/templates/mytemplate/templates/tpl_about_default.php

  3. created file..

    /includes/extra_datafiles/about_filenames.php

which contains the text...

<?php define('FILENAME_ABOUT_US', 'about'); ?>
  1. added to configuration table in DB..

    DEFINE_ABOUT_STATUS

and set..

configuration_value to 1

=======================

New define page shows up and is editable in "admin > define pages editor"

However, when calling the url in a browser..

http://www.mydomain.com/index.php?main_page=about

I get a 404 page not found

Can anyone tell me what I am missing

25 Oct 2007, 10:12 AM
#14
snowkrash avatar

snowkrash

New Zenner

Join Date:
Aug 2007
Posts:
65
Plugin Contributions:
0

Re: How to add pages to define page status?

Anything further on this? I have all these custom pages. I can edit them in the Define Pages Editor under "Tools" in the Admin area, but I want them to be controllable in the "Define Page Status" area under "Configuration" in the admin area.

I'm hearing that I've got to get my custom pages into the database, and that I have to write a MySQL script to do that. Wouldn't the script already exist somewhere in Zen Cart that I could modify, as all these other pages had to get in there somehow. Alternatively, could I not insert the pages manually into the database, and how would I do that?

I appreciate any help.

4 Jan 2008, 9:29 PM
#15
juicevb10 avatar

juicevb10

New Zenner

Join Date:
Nov 2007
Posts:
30
Plugin Contributions:
0

Re: How to add pages to define page status?

The About Us contribution is a great way to add custom define pages.

Is there a way to manage those in the Define Page Status under Configuration in admin?

10 Jan 2008, 10:26 AM
#16
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to add pages to define page status?

Ajeh:

If you add the define files correctly, with a copy in the:
/includes/languages/english/html_includes

And your real files in the:
/includes/languages/english/html_includes/your_template_dir

These are auto loading and self building on the Define Page Editor ... in other words ... not extra coding required to add them ... :smile:

Hi Ajeh,
I did that, in fact I did all of this:
[QUOTE}
Creating new pages in Zen Cart, AD 2005

For illustration use the page_2 as a guide
Try starting over and in these areas edit or create what is required changing only the reference to page_2 to page_5...get it to work in that default generic form before you begin changing things like "Zimbabwe Orphans Endeavor'"
Just the straight page_5 references to start.

Create/clone these as page_5
/includes/modules/pages/page_2/header_php.php
/includes/languages/english/page_2.php
/includes/templates/template_default/templates/tpl_page_2_default.php

Add/edit these to include page_5
/includes/modules/sideboxes/more_information.php
/includes/languages/english.php
/includes/filenames.php
Create define_page_5.php in both of these folders
/includes/languages/html_includes
/includes/languages/html_includes/your_template

This should net you a generic page_5 in the "More Information" sidebox
You can then begin using this in your overrides areas

Once this works you can move on to custom titles etc - one at a time so you can track back if it breaks
[/QUOTE]
It shows up in the more_information sidebox, define pages editor & on the front page when selected, but it is NOT showing up in the configuration define page status!
I can add text to the page via the define page editor, but only the title is showing on the front page.
What could I have left out?
I have checked & rechecked all the files, but just can't see what I am missing.
A friend helped with the checking last night & found one omission which had caused the page not to be called at all ( an omission in filenames.php), so we are a step forward, but it still isn't right.
Any ideas?
Thanks for any help.
Regards
Gay
http://www.artyfactsforcrafts.com
ps the page is called Directories & I'm using v1.3.02

10 Jan 2008, 10:49 AM
#17
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to add pages to define page status?

Forgot to say: I copied page2 to make my page5, then changed the info as appropriate.
I have checked several times & am now almost 99% sure I've changed everything.

14 Jun 2008, 2:33 AM
#18
mrkshrt avatar

mrkshrt

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: How to add pages to define page status?

I believe if you want to use the Define Page Status you need to do something like this:

Add this rows to database so the Define Page Status entry will show up (change _title, _key, _value appropriately for other pages)
INSERT INTO configuration (
configuration_id ,
configuration_title ,
configuration_key ,
configuration_value ,
configuration_description ,
configuration_group_id ,
sort_order ,
last_modified ,
date_added ,
use_function ,
set_function
)
VALUES (
NULL ,
'Define About Us Status',
'DEFINE_ABOUT_US_STATUS',
'1',
'Enable the Defined About Us 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',
'62',
Now(),
Now(),
NULL ,
'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),'
);

18 Jun 2008, 6:12 AM
#19
tactician avatar

tactician

New Zenner

Join Date:
Jun 2008
Posts:
11
Plugin Contributions:
0

Re: How to add pages to define page status?

i follwed all the instructions per this
PDF document i found an i added the appropriate values into the SQL script for making page_5 through page_10 everyhing works like a charm, however when i use the define page editor or if i use notepad++ and upload it, the text never displays on the live site under those pages, it just shows the header and the title but no page ocntent, so it appears im having the same problem as the post above

i used this to edit my database

INSERT INTO configuration ( configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function,
set_function)
VALUES ('Define Page_5', 'DEFINE_PAGE_5_STATUS', '1', '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, 100, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');

which is the code at the bottom of the attached PDF is there something i am missing to make the page content show up?

18 Jun 2008, 6:24 AM
#20
tactician avatar

tactician

New Zenner

Join Date:
Jun 2008
Posts:
11
Plugin Contributions:
0

Re: How to add pages to define page status?

also if this info helps when in the admin define page area and the status is set to 1 lin=on define text=on and i visit page 5, the right side banner box dissappears and there is no back button, when i set it to status 0 link=on deifne text=off the right sideboxes re-appear and there is a back button, however reguardless of the settings in admin my main body text never shows up wether i add it in the define page editor or via FTP, the file is editied when i get it through ftp and open it, just doesnt display on the site...is blank page