Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 66
  1. #11
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default 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?
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  2. #12
    Join Date
    Oct 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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');
    ?>

    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

  3. #13
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: How to add pages to define page status

    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
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  4. #14
    Join Date
    Aug 2007
    Posts
    64
    Plugin Contributions
    0

    Default 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.

  5. #15
    Join Date
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default 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?

  6. #16
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: How to add pages to define page status

    Quote Originally Posted by Ajeh View Post
    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 ...
    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

  7. #17
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default 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.

  8. #18
    Join Date
    Jun 2008
    Posts
    1
    Plugin Contributions
    0

    Default 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''),'
    );

  9. #19
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default 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?
    Attached Images Attached Images

  10. #20
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default 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

 

 
Page 2 of 7 FirstFirst 1234 ... LastLast

Similar Threads

  1. v154 How can I add extra Define Pages?
    By Zappa Aviaries in forum General Questions
    Replies: 9
    Last Post: 17 Feb 2015, 03:14 PM
  2. v151 How do I add an image to Define Pages?
    By evilsorcerer1 in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2013, 06:40 AM
  3. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  4. duplicated 'define page 2' and define page status not appearing
    By twitchtoo in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 7 May 2007, 06:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR