Hi guyz!

This might sound a lil noobish to some of y'all, but yea I'm actually a noob in drupal overriding.

My problem is that I wanted to theme the BOOK MODULE (book-navigation.tpl.php and book.css to be precise). I achieved what I wanted, but the problem is where to save my own version (instead of saving it in the BOOK MODULE's folder). It will mean hacking if I save mine it in the position of the original.

Please like I said earlier, I'm a noob at this - WHERE THE HELL DO I STORE THE ONES I EDITTED.

Cheers!

Comments

bwv’s picture

I might be mistaken but I believe you save it in your theme folder, next to page.tpl.php, node.tpl.php, etc. Book.css can go there as well.
----------------------------------------------------------------------
http://classicvinyl.biz
http://music.classicvinyl.biz
http://association.drupal.org/user/1207

WorldFallz’s picture

It would help if you mentioned which version of drupal you were using.

To learn about drupal theming see http://drupal.org/theme-guide

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

cnario’s picture

I'm using drupal 6. I've tried saving it to my themes folder, but ain't working.

ryivhnn’s picture

You can usually overwrite book.css in style.css, if you really want to have it in a separate css make sure that your book.css is listed in the .info file for your theme.

You may also need to clear Drupal's cache and give the theme thingi a kick to get the changes to show up if you've recently dropped in the .tpl.php, sometimes they take their sweet time registering. That and you also have to make sure you renamed the page correctly, I'm not sure what the protocol is for overriding templates these days as I've managed to use modules for most of the stuff I was overriding (aside from page and node and possibly block :)

works at bekandloz | plays at technonaturalist

cnario’s picture

I've got the book.css figured out, but what I want to know is where to store my new book-navigation.tpl.php file instead of overriding the original.

WorldFallz’s picture

As clearly described in the theme guide, custom template files go in the theme directory and you must clear the theme registry to have them detected.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

cnario’s picture

Forgive me, but how do I clear the theme registry?

bwv’s picture

Site configuration >>> performance, clear cache (button at the bottom of the page). That usually does the trick.

See more here: http://drupal.org/node/173880

And here: http://api.drupal.org/api/function/drupal_rebuild_theme_registry/6

----------------------------------------------------------------------
http://classicvinyl.biz
http://music.classicvinyl.biz
http://association.drupal.org/user/1207

WorldFallz’s picture

You really should at least look at the documentation-- it's a bit unreasonable to expect people in the forums to retype existing documentation: http://drupal.org/node/173880#theme-registry.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

cnario’s picture

Thanks for all the comments. I've got it sorted out................. I'll post a link to the site very soon so that you'll see the out come. It's really looking super sweet. The best Book Navigation I've seen.

tryitonce’s picture

In case someone uses the Outline module - you have to modify the files used there in order to customise the book layout / appearance.

I have tried to move the Outline-navigation.tpl.php to my customized theme and to make the changes there, but so far it did not work and I had to make the changes in the Outline directory. At least it is not part of the core installation.