How do I format the content of a particular book I'm writing with the Book module?

I've searched all over and found no instruction.

My theme is Pixture Reloaded.

Thanks!

Comments

WorldFallz’s picture

Usually you use body classes for this kind of styling. Each theme is different-- that's probably why there's no documentation for it.

I know pixture_reloaded has a body class for node-type-book, but I'm not sure if it also has one for individual books. If not, you'd have to add one to the $body_classes variable in the template.php file.

petercrowell’s picture

Thanks WorldFallz. Let me see if I've got this right. I need to make adjustments to the body class for node-type-book. That will affect all the book nodes I create. If I want to format a specific book, I need to add code as you indicate.

Question: I'm brand new to php. What is the basic syntax for adding something to the $body_classes variable in the template.php file? Is there something there already which I can riff off of?

WorldFallz’s picture

For this I'm not sure exactly what the code should be-- i would think you'd want to add the nid of the top node of the book, but I'm not sure how you would do that. But yes, there's already some code setting the $body_classes variable in the template.php file for pixture_reloaded that you would want to add to.