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?
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?
I Think, Therefore I Zen. I Zen, Therefore, I AM!
Personalized Flowers!
Flowertown Speaking Roses using version 1.5.7-06232020
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');
?>
4) 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
Looks like everything is named "about", except this one:
<?php
define('FILENAME_ABOUT_US', 'about');
?>
There's an About Us contribution in the downloads here:
http://www.zen-cart.com/index.php?ma...roducts_id=182
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.
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?
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
######
http://www.artyfactsforcrafts.com
ps the page is called Directories & I'm using v1.3.02
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.
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''),'
);
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?
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
Bookmarks