Syndicate

Feed

Theming Question

Hi Caroline,

I'm also looking forward to your ebook, thank you.

I have decided this morning to learn about theming from scratch, so, I made a folder called 'scratch' in sites>all>themes and into this I put an empty text file called page.tpl.php.

As a programmer/designer, the first thing I want to do is make page.tpl.php a "Reference File" that prints a list of all available variables and their values, i.e., $language = 'en'.

Without peeking at other themes' page.tpl.php files, I'd be interested to know what object or array might contain all available variables/arrays/objects? (I'm also just beginning to learn PHP.) So far, I know how to print_r($node), and I'm thinking there's probably some other object to print like this to see all page variables/arrays/objects.

Anyways, that's the question in my mind as a theming beginner and I'm off to the drupal handbook to see what I can hunt down.

Take Care, Ray

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <a> <b> <i> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <sup> <sub> <dd> <del> <blockquote> <img> <q> <p> <div>

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.