Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,108
    Plugin Contributions
    11

    Default Re: Should a Plugin EVER use template_default?

    I have no problem with the backup/testing files. I guess I just fail to see how a totally new file should be placed ONLY in the template_default while other files are placed in the YOUR_TEMPLATE.

    Is there an instance where a file might ONLY be needed for backup/testing?

    Part of the original reason for broaching the subject is that we have folks that purge classic and template_default thinking they're going to get some SEO benefit from getting rid of the extra files. Especially the css.

  2. #12
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Should a Plugin EVER use template_default?

    The approach I've taken (lately) with my plugins is to put any new files into /template_default and any template-override files (i.e. built-in ZC files modified) into the YOUR_TEMPLATE directory. That includes any .css/jscript files since those require presence in the currently active template directory.

  3. #13
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Should a Plugin EVER use template_default?

    You could argue that completely new functionality/pages may go in template_default, but modifications to existing functions/pages should use overrides.

    As far as I am concerned, an upgrade is always an entire fileset comparison, there is always some housekeeping duties that it throws up, so stuff should not get missed because it is in unexpected places, in fact it should be more noticeable: new files in template_default stick out like a sore thumb.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Anyone ever use this to add facebook button?
    By dsimon55 in forum General Questions
    Replies: 3
    Last Post: 17 Jul 2013, 03:18 PM
  2. Should we port our Shopify CartSaver Plugin to ZenCart?
    By netherben in forum General Questions
    Replies: 4
    Last Post: 29 Sep 2010, 08:47 PM
  3. Sideboxes use template_default templates instead of my own
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 17 Oct 2008, 01:50 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