By bizarrogir on
I have been creating a custom theme for my drupal website and I ran into this problem where the Drupal Administration Menu (module) disappears for custom themes that are not based on out-of-the-box themes. I did a lot of searching for a solution with no luck, so in the end I just ran through the code of existing themes to see what code is required for the menu. Hopefully I can help someone who may have the same question!
You basically need to have this code at the end of your page.tpl.php file:
print $closure
This should go right before the closing /body html tag. Apparently Drupal requires it to run any dynamic javascript to run.
Comments
Thank you! You solved my
Thank you! You solved my issue.
THANK YOU!!!
I needed this so finish up the first part of my custom theme
Wow, that would have tanked
Wow, that would have tanked all my dynamic javascript? You are a life-saver.
Cheers!
Cheers!
bookmarking!!
bookmarking!!
---~~~***~~~---
aac
love the simplicity
Cluttering to share my thanks :)
--
http://drupaltees.com
80s themed Drupal T-Shirts
Thank you! Nice tip :)
Thank you! Nice tip :)
Perfect. Exactly what the
Perfect. Exactly what the problem was... is this instruction within the Drupal Handbook? If so, I missed it...
Nice
Perfect. Thanks!
this is working fine
On mysite this method is working.
Yours helped me. Thank you
Yours helped me.
Thank you very much.
Thanks so much!
This is excellent. I've been making custom themes for 2 years now and never understood why the menu only displayed in /admin. Thanks so much man!!
Thanks
Thanks a lot mate!! I had the exactly same issue and you saved my time.
I'm running 6.2. I have the
I'm running 6.2. I have the following as the last piece of my page.tpl code
print $closure;echo $closure;But still when i click the spanner button on the top left of my site, it does nothing. So am unable to access the admin menu at all. It is a different thing that when i physically type in website.com/admin, it throws an error (that i am tackling separately), but for now, the spanner does nothing. Can you help me here please/
Thank you to infiniti
Thank you to infiniti
Excelent! tanks very much XD
Excelent! tanks very much XD
Not working yet
This message is a reply on the proposed solution, not on the message above.
I have put your solution in the html.tlp.php file as there is no closing /body statement in the page.tpl.php file.
However I get the message:
It is missing the declaration of the closure variable?
Drupal 7 is different...
Drupal 7 is different.
You will need this code - just before the closing body tag </body> at the bottom of html.tpl.php