Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Define Page Editor changes having no effect

    I should have added the findus.php file in the includes/extra_datafiles directory simply contains:-

    PHP Code:
    define(FILENAME_FINDUS'findus'); 
    The above is as per the wiki guide, however as the constant FILENAME_DEFINE_FINDUS is used in the header.php file I also altered the FILENAME_FINDUS constant to read FILENAME_DEFINE_FINDUS, the difference when I changed this was I got a 404 error rather than simply no content.

  2. #12
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Idea or Suggestion Re: Define Page Editor changes having no effect

    Hi,

    Thanks for the help, I've now managed to solve this.

    My problems where:-

    I initially placed textual content for the page in tpl_findus_default, instead of just copying what is in an existing page, e.g. tpl_page_2_default

    I then realised that to see the main content from the file in the html_includes directory the page status must be switched on via page status settings. When creating a new page the status is off by default, so you see no content.

    In summary if you want to create a new page and be able to edit it via the admin panel, I would recommend basing all files on page_2 (or any existing page really), the three steps involved can be summarised as:-

    1) Follow instructions at http://www.zen-cart.com/wiki/index.p...ting_new_pages
    2) Create content file at includes/languages/english/html_includes/YOURTEMPLATE/define_pagename.php
    3) Switch on the page using define page status section of the admin area, you must first insert a new entry in the configuration database or your new page will not show up in the define page status list, SQL required is

    Code:
    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''),');
    Change pagenames above, as appropriate

    Thanks,

    Andy

  3. #13
    Join Date
    Mar 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Define Page Editor changes having no effect

    I can´t believe I´ve been grappling with this for DAYS!
    And how is a mere mortal supposed to figure out the SQL commands that Andy has found to solve this problem?

    Can someone tell me how to Quote : ¨you must first insert a new entry in the configuration database¨

    Is this done with MyPhpAdmin ?

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v137 Stylesheet changes not having any effect
    By lewisasding in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Mar 2013, 04:39 AM
  2. Define Pages Editor not saving changes
    By jharper in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jan 2009, 03:25 AM
  3. Changes in Define Pages Editor Won't Save
    By mattmueller in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Nov 2007, 08:57 PM
  4. having probs with define pages editor
    By mikemoon in forum General Questions
    Replies: 2
    Last Post: 6 Apr 2007, 02:41 PM
  5. Define Pages Editor loses changes
    By GaryNick in forum Basic Configuration
    Replies: 3
    Last Post: 16 Nov 2006, 06:34 AM

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