Jan 19, 2012

How to Hide Your Custom JS Files in Drupal

,
Drupal is a free, open-source content management system that is written primarily in PHP and can be customized by adding dynamic JavaScript, or JS, files. If the JS file contains proprietary code that you don’t want exposed over the Internet to outside users, you can hide your file. To hide the JS file in Drupal, the file must be placed in a folder outside of the Web directory.


Instructions

  • 1
    Log in to your Web server using an FTP client on your computer.
  • 2
    Right-click inside the Web server root folder, click “New” and select “Folder.”
    • 3
      Type a name for the folder and press “Enter.”
    • 4
      Double-click the Drupal website folder.
    • 5
      Right-click the JS file and select “Copy.”
    • 6
      Click inside the folder you created in Step 2.
    • 7
      Right-click and select “paste” to move the custom JS file to the new folder.
    • 8
      Click the JS file inside the Drupal folder and press the “Delete” key to remove.

0 commentaires to “How to Hide Your Custom JS Files in Drupal”

Post a Comment

 

HowToYo Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates