06.05.2013 Views

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with <strong>JavaScript</strong> in <strong>Drupal</strong><br />

In other cases, I may want to share a theme or module across all sites. In these cases,<br />

files would go in sites/all/. In this book, we will be putting all of our themes <strong>and</strong><br />

modules in sites/all/themes/ <strong>and</strong> sites/all/modules/.<br />

If in doubt, put files in sites/all/. This makes it easier to share your<br />

work between sites.<br />

With that background material behind us, let's create our theme directory. The name<br />

we give to this directory will be the name of our theme.<br />

Theme <strong>and</strong> module names should always be in a lower case, <strong>and</strong> may be<br />

<strong>com</strong>posed only of letters, numbers, <strong>and</strong> underscores. In the .info file,<br />

we will be able to attach a human-readable name to the theme. That may<br />

use spaces, capital letters, <strong>and</strong> other special characters.<br />

Our first theme will be in sites/all/themes/frobnitz/ as seen in the<br />

following screehshot:.<br />

If this is the first theme you create, you may also need to create the sites/all/<br />

themes/ directory.<br />

Once the directory is created, we need to add a special file to tell <strong>Drupal</strong> about<br />

the theme.<br />

[ 46 ]<br />

This material is copyright <strong>and</strong> is licensed for the sole use by Richard Ostheimer on 18th June 2009<br />

2205 hilda ave., , missoula, , 59801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!