Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default How to auto load jacascript for all pages in the backend?

    In the frontend, the javascript with jscript_ will auto-load. How to do that in the backend?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to auto load jacascript for all pages in the backend?

    Do you really need it on EVERY admin page?

    In v1.5.5:
    - To make it available on EVERY admin page (not recommended), I suppose you could stick a call for it into /admin/includes/general.js or /admin/includes/menu.js
    - Or to put it on the SPECIFIC PAGE where you need it, simply edit the admin/whatever_page_name.php file and put the necessary <script> tag in the section that outputs the <head> html.

    There will be improvements in v1.6.0 for making js easier to implement on the backend. But for v1.5.5 the above is probably the best approach.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: How to auto load jacascript for all pages in the backend?

    Thanks. I will try it. I want to load a table sort js to make it easy to find the configuration item.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to auto load jacascript for all pages in the backend?

    Quote Originally Posted by su35 View Post
    I want to load a table sort js to make it easy to find the configuration item.
    Maybe you should just use the Configuration Search/Lookup inside the Admin->Tools->Developer Toolkit screen.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,538
    Plugin Contributions
    127

    Default Re: How to auto load jacascript for all pages in the backend?

    Also, there is this plugin: https://www.zen-cart.com/downloads.php?do=file&id=1107 (Search Configuration Keys)
    That Software Guy. My Store: Zen Cart Support
    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to auto load jacascript for all pages in the backend?

    Quote Originally Posted by swguy View Post
    Also, there is this plugin: https://www.zen-cart.com/downloads.php?do=file&id=1107 (Search Configuration Keys)
    ... which is already built-in to v1.5.5
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 23 Apr 2013, 08:44 PM
  2. How can I load all of my goods for sale and test before my shop is live
    By davesmith in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Aug 2010, 11:38 AM
  3. Do you load all the files or just the picture for the header
    By lilguppy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jan 2010, 07:36 AM
  4. PHP, JacaScript, & HTML areas on pages
    By Donn in forum General Questions
    Replies: 8
    Last Post: 10 Feb 2009, 03:50 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