Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    29
    Plugin Contributions
    0

    Default Override Sideboxes, What should the path be?

    Hi

    Most of the overide system makes sense. I'ves used this on my other store with out problem.

    I'm just a little confused about how to make my newly added "blank sidebox" properly overridden. The instruction in red is what I can't figure out.

    Template Files

    * Page templates: /includes/templates/template_default/templates/tpl_***.php

    You need to modify some part of tpl_account_default.php
    You should already have the following folder structure /includes/templates/CUSTOM/templates.
    Copy tpl_account_default.php to this directory.
    Open the file in a text editor find modify it to suit your needs
    Save the file and upload it to your server.

    * Sidebox templates: /includes/templates/sideboxes/tpl_***.php

    To modify these files follow the steps above, with the exception of the sidebox path.



    So I have the file in includes/template/template_default/sideboxes/tpl_blank_sidebox

    What should my path look like for the overide file. I have tried various path on this but I've not managed to override this file successfully.

    I've been going round in circles for a few hours on this and I think I'm missing something very obvious.

    A bit of help on this would be massively appreciated. I started building this site, then the new version comes out. So I want to have all the overides in place properly so upgradeing will be succesfull!

    Thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Override Sideboxes, What should the path be?

    The blank sidebox does not exist in the core files, so you can safely put its files either in /template_default/sideboxes/tpl_blank_sidebox.php and in /includes/modules/sideboxes/blank_sidebox.php (this will let the sidebox be used by any active template if you switch templates), or in /your_template/sideboxes/tpl_blank_sidebox.php and /includes/modules/sideboxes/your_template/blank_sidebox.php (this will limit its existence to /your_template/).

    My opinion is that putting the files in /your_template/ folders makes maintenance easier unless you have a good reason to do otherwise.

  3. #3
    Join Date
    Feb 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Override Sideboxes, What should the path be?

    Quote Originally Posted by gjh42 View Post
    The blank sidebox does not exist in the core files, so you can safely put its files either in /template_default/sideboxes/tpl_blank_sidebox.php and in /includes/modules/sideboxes/blank_sidebox.php (this will let the sidebox be used by any active template if you switch templates), or in /your_template/sideboxes/tpl_blank_sidebox.php and /includes/modules/sideboxes/your_template/blank_sidebox.php (this will limit its existence to /your_template/).

    My opinion is that putting the files in /your_template/ folders makes maintenance easier unless you have a good reason to do otherwise.
    Thanks you so much, so simple. I just couldn't see it before. Thanks so much for clearing that up for me.

 

 

Similar Threads

  1. If the header is fluid 100% (not pixels)... what size should the image be?
    By CultureClick in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 May 2012, 12:32 PM
  2. What is the URL path to a specific category?
    By gemohler in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2007, 11:43 AM
  3. What should be the name of the stylesheet so that it appears only for HOME PAGE
    By surabisantosh in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Nov 2007, 08:59 PM
  4. What is the path for images?
    By maxima in forum General Questions
    Replies: 8
    Last Post: 13 Oct 2006, 02:32 PM
  5. Everything that should be done for the override system
    By godspeed27 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 2 Jul 2006, 10:44 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