Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Mar 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: editing through the admin page editor

    theres nothing in my classic folder

    am i supposed to move the .php page files from html_includes into there? should there already be files there?


    *edit: i moved them from the html_includes folder to the classic folder and now they do not appear in the pull down menu in the page editor
    Last edited by geoffkarr; 28 Mar 2008 at 05:49 PM.

  2. #12
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: editing through the admin page editor

    Yes, you need a 'classic' dir. but not not move the files, copy them.

    All files shown in the 'html_includes' dir. should also be in a dir. called 'classic' and the name of your custom Template if using one.

  3. #13
    Join Date
    Mar 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: editing through the admin page editor

    success! i can now edit the files, thank you very much guys =)

  4. #14
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: editing through the admin page editor

    Geoff, the principle of OVER-RIDES is relatively simple once you get to know where the over-rides must go.

    Basically, zencart provides a mechanism for customised changes to be made to core code that achieve the following:-

    1. That the CORE FILE (original file) remains UN-edited, in its ORIGINAL location.
    2. That an edited copy of a core file is stored in another folder so that when you upgrade your zencart later on, you don't overwrite the edited copy.

    A STANDARD install of zencart includes the CLASSIC template, and (unless you install another template) CLASSIC becomes your custom template.

    Rule of thumb: Wherever you see a CLASSIC folder in your zencart directory tree you have an over-ride facility.

    If you are using CLASSIC as your template, then you will copy a relevant core file into this folder, and make edits to this copy.

    If you install another custom template (let's say it's called "darkblue") then wherever you see a CLASSIC folder in your tree, you should ALSO have a folder called "darkblue".

    So, lets say you want to EDIT a copy of:-

    includes\templates\template_default\templates\tpl_account_default.php

    you will COPY "tpl_account_default.php" to

    includes\templates\darkblue\templates\

    to get

    includes\templates\darkblue\templates\tpl_account_default.php

    ... and that is the copy you edit.

    Because you have selected "darkblue" as your chosen template in ADMIN>TOOLS>TEMPLATE SELECTION...

    ...zencart will know that it must look there FIRST for tpl_account_default.php .

    If it does not find that file in the darkblue folder, it looks for it in template_default folder.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 15 Aug 2011, 08:59 PM
  2. Editing defines Page Editor
    By mhakiwa in forum General Questions
    Replies: 5
    Last Post: 1 Nov 2009, 10:03 AM
  3. My define page editor is editing the wrong directory
    By heliwraps in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Apr 2009, 12:35 AM
  4. Editing the admin reviews.php page
    By dharma in forum Basic Configuration
    Replies: 4
    Last Post: 16 Mar 2008, 08:50 PM
  5. Removing white space through Admin Tools>Define Pages Editor?
    By firechook in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Feb 2008, 01:52 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