page.tpl.php was missing $scripts
webengr - May 3, 2009 - 01:48
| Project: | Darsch |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
I noted the wysiwyg module and the old tinymce module did not display on the 2008 versions of darsch theme.
I read the wysiwyg module faq api, http://drupal.org/node/417166
and saw this:
"Q: I got it working for Garland, however, when I switch to my custom theme it says "Drupal is not defined" ?
A: Please ensure that $scripts is output before $closure in page.tpl.php of your theme. Also make sure your page.tpl.php in your theme contains print $closure somewhere at the bottom. Without this theme area the module will not work.
Sure enough while page.tpl.php had $closure near bottom, it did not have $scripts at all.
I added this
<?php
print $scripts
?>After the title and styles embeds... thus:
<?php
print $head_title
?><?php
print $styles
?><?php
print $scripts
?>---
and now the tinymce through wysiwyg module shows up.
