Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Posts
    59
    Plugin Contributions
    1

    Default Incomplete Page List in Define Pages Editor

    Hi all,

    can someone confirm if this is desired behaviour or a potential bug.

    If define pages exist in the template folder

    /includes/languages/english/html_includes/TEMPLATE

    but not in the "standard" folder

    /includes/languages/english/html_includes

    then they are not listed in the drop down of the Define Pages Editor.

    Obviously the files shouldn't have been removed from

    /includes/languages/english/html_includes

    in the first place (I have been playing around), but if files exist in

    /includes/languages/english/html_includes/ TEMPLATE

    they are not needed in /includes/languages/english/html_includes anyway.

    Just wondering?

    Kev

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Incomplete Page List in Define Pages Editor

    If you have files in:
    /includes/languages/english/html_includes

    then they get overridden by anything in:
    /includes/languages/english/html_includes/your_templates_dir

    However, if you have files in
    /includes/languages/english/html_includes/your_templates_dir

    that are not in
    /includes/languages/english/html_includes

    then there is nothing to "override" so they do not show up ...

    Just add empty files or what have you on new files for the
    /includes/languages/english/html_includes

    so that what ever lives there can be overridden by what lives in
    /includes/languages/english/html_includes/your_templates_dir

    easy smeazy, eh?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2009
    Posts
    59
    Plugin Contributions
    1

    Default Re: Incomplete Page List in Define Pages Editor

    HI Ajeh,

    you are right, there is nothing to override so it makes sense not to list the page in the Define Pages Editor. But if this scenario happens, and thre is nothing to override, the page still appears in the site map. So its a little inconsistent???

    I'm just being picky I think but I do like to investigate things and see how they "really" work as oposed to how they "should" work.

    Kev

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Incomplete Page List in Define Pages Editor

    I will have to go try out that theory when I have time ... as that is a tad moofy if that is happening ...

    meanwhile, gotta go make dinner ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Incomplete Page List in Define Pages Editor

    Aha! A clue ...

    The Site Map is hard coded differently ... it is not managed automatically like the Admin editory ...

    Example in the tpl_site_map_default.php you will see:
    Code:
    <?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
                <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_3_STATUS <= '1') { ?>
                <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_4_STATUS <= '1') { ?>
                <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
    <?php } ?>
    That is not attempting to do anything but call the links and there is no check for the files themselves ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2009
    Posts
    59
    Plugin Contributions
    1

    Default Re: Incomplete Page List in Define Pages Editor

    Hi,

    juat noticed your reply. Makes sense! Perhaps an enhancement for 1.4?

    Thanks for looking into it.

    Kev

 

 

Similar Threads

  1. EZ-page and Define Pages Editor
    By hara in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2015, 04:48 PM
  2. Pages not showing up in define page editor
    By commdiver in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Aug 2010, 12:49 PM
  3. Add New Page to Define Pages Editor?
    By noister in forum Customization from the Admin
    Replies: 3
    Last Post: 11 Nov 2009, 11:47 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