Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Mar 2010
    Posts
    37
    Plugin Contributions
    0

    Default define pages not showing in sidebar after install via Installatron

    Hi guys, I am working on a new install of zen, latest version 1.5.7, its offline at the moment.
    I have followed the tutorial on creating your own template: https://www.zen-cart.com/content.php...ustom-template
    The template is in and loaded in Admin.

    If I add content to a define page file and then check the site, nothing shows up.
    Sideboxes/information.php is turned on in the Layout boxes controller.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: define pages not working

    The information sidebox is just designed to show links; there's no associated define page with it.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Mar 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: define pages not working

    Yes understand that thanks, what I am having trouble with is adding content to the centre of the main page.
    If I edit the main_page.php in admin/tools/define pages editor nothing shows up on the site. I am missing something simple for sure, I have gone through every setting I can find in admin to see what turns what on and off, and I cannot figure out how to get the define pages to sho up.
    I want to use the conditions page, the privacy one, and others, but am at a loss, have spent hours googling this and trying to find something in the help files.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: define pages not working

    OK, I noticed in your first post you linked the OLD content for how to create a template.
    Let's get you looking at the new content first:
    https://docs.zen-cart.com/user/templ...ting_template/

    Then let's check to be sure it's being used: go to Admin > Tools > Template Selection and verify that the template shown is your newly created one.

    Now go to Admin > Tools > Define Pages Editor, and select define_main_page.php.

    If you have not created a new copy of define_main_page.php in includes/languages/english/html_includes/YOURTEMPLATE
    then you will be editing the one in includes/languages/english/html_includes/define_main_page.php

    Make a change, press save, then refresh the storefront. You will see your change.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Mar 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: define pages not working

    Sorry for the delay, too much on right now. Yes the template is active and showing in admin.
    Yes I have define_main_page.php inside my template.

    I created the template folder, then copied all the files from responsive_classic into it, did this for all the new YOURTEMPLATE folders as I am using responsive classic but wanted to make sure my customization wouldn't be lost in any upgrades.

    I go to the new template folder, open define_main_page.php and the code I entered in Admin > Tools > Define Pages Editor > define_main_page.php is there, but nothing shows on the website.

    I dont really want to post up the URL in public as its not directed yet and not finished and might not be 100% secure. Happy to send you more details in pvt msg if you could take a look at the layout, might be something obvious there.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: define pages not working

    it's possible your template doesn't use define_main_page.php then. Not sure.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Mar 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: define pages not working

    Does anyone have any ideas on where to look to figure this out? the template is active and when you go into editing in admin the string points to my template in the correct directory with the correct php file shown. I am confused!

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: define pages not working

    At the risk of stating the obvious, I know you've checked the settings in Admin but I assume the Define Main Page Status is 'On'.

    in \includes\templates\[my_template]\templates\tpl_index_default.php

    do you have

    Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent"><?php require($define_page); ?></div>
    <?php } ?>
    Simon

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: define pages not working

    Actually those flags might be worth checking too. Be sure when you go to Admin > Configuration > Define Page Status that the flag for Define Main Page Status is either 1 or 2.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: define pages not working

    Yes, I should have been more specific - rather than just saying 'On'
    Simon

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 3 Jun 2014, 05:42 PM
  2. v150 text not showing on define pages
    By satijn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2012, 12:44 AM
  3. define pages not showing formatting
    By Andi98640 in forum General Questions
    Replies: 1
    Last Post: 18 Dec 2010, 06:30 AM
  4. EZ pages / More Information not showing in sidebar
    By Euonym in forum Customization from the Admin
    Replies: 5
    Last Post: 29 Sep 2010, 08:43 AM
  5. 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

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