styling the node/add/page

LuckyBamboo - November 9, 2009 - 02:55

I'm trying to get the page to come up from it's own tpl file, like i do with nodes. I have the theme developer turned on and this is what it says:

Template called:
page.tpl.php
File used:
themes/garland/page.tpl.php
Candidate template files:
page-node-add-page.tpl.php < page-node-add.tpl.php < page-node.tpl.php < page.tpl.php

I tried all 4 suggested tpl files , but none work...

Since you haven't mentioned

Rowanw - November 9, 2009 - 06:53

Since you haven't mentioned it yet; have you cleared your theme registry?

I cleared the cache using the

LuckyBamboo - November 9, 2009 - 15:10

I cleared the cache using the devel module, from what i know i also clears the theme registry

Interested..

ludo1960 - November 9, 2009 - 15:15

.. why it doesn't work?? Should do!

Tell me about it.....

LuckyBamboo - November 10, 2009 - 01:24

could someone please try it and confirm getting the same result

Still no joy here.. but,

LuckyBamboo - November 11, 2009 - 23:32

i realized that in /node/add/page the page.tpl of the Garland theme is used, not even my own theme's tpl. That may be a clue to someone who understands Drupal better than i do.

=-=

VM - November 11, 2009 - 23:35

clearing cache does not entirely clear the theme registry based on documentation I've seen somewhere. There are instances where you would need to visit the administer -> themes screen which clears the parts of the registry that a cache clear does not.

Edit: Comment above is incorrect,clearing cache also clears the theme registry per : http://drupal.org/node/173880 under theme registry.

That sounds like a

Rowanw - November 12, 2009 - 05:32

That sounds like a configuration option in Drupal, go to Site configuration > Administration theme, ensure that "Use administration theme for content editing" is unchecked..

Spot on!

LuckyBamboo - November 13, 2009 - 01:21

you nailed it, I could have wasted many more hours to figure that one out.... thank you!

 
 

Drupal is a registered trademark of Dries Buytaert.