I have drupal 6.14 installed on a Linux computer on my local LAN that I want to create my own theme for. I have the Theme Developer module installed in drupal (6.x-1.17 version) and the Firebug and Web Developer Toolbar for Firefox. What I want to know is what function I need to put in the template.php and call the dsm($form) to show all the variables from the front page (prior to logging in) to find out what I can override and so on?

Comments

trevjs’s picture

Looks like a handy bunch of tools, maybe I'll try to see if I can figure it out.

My understanding is that these would be the steps:

install firebug
install firephp
install the libaries, instructions here:

download and install the deval module
activate the module in your drupal installation...

krazykanuk’s picture

I never installed those. I did watch the Lullabot Theming Basics for drupal. I know there are different functions on the front page that can be themed that have different variables. For instance I know the User Login can be themed but I do believe the the title (User Login) of it is in a different function same goes for the search and any other item on the front page or any other page key is getting the function and the variables to that function to be able to theme it.

trevjs’s picture

You could sidestep all of this by starting with the Zen theme. Then you wouldn't need firephp. It uses an approach to theming that is more familiar to most developers. You wouldn't have to deal with php functions, and you could concentrate on CSS, and editing the page.tpl.php file.

Is Lullabot Theming Basics one of the videos you have to pay for?

krazykanuk’s picture

I would rather create it myself then it is 100% mine, I will get it in time. Yes Lullabot Theming Basics is one of the videos you need to pay for, but a Google search for it will provide you with a link to download it, you may have to download it in parts and join and extract the file but it can be done.

trevjs’s picture

The last step for me was to go into user management>permissions, and then check the boxes access devel information, display source code, execute php code, switch users, and view devel_node_access information for the anonymous user column. Some of these might not be necessary just to see the devel information.

Hope that was what you needed, otherwise you might be stuck on one of the earlier steps, such as those involving firephp.

krazykanuk’s picture

I found with the devel module enabled I had to turn Theme Developer off with my setup before I logged out, otherwise it logged me out to a blank page.

trevjs’s picture

Okay, maybe I'm reading this wrong, but isn't theme developer part of devel?

Anyways firebug alone won't give you php information, for that you'd need to follow the steps for involving firephp.

Here is the link to devel:
http://drupal.org/project/devel