Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a problem concerning my text area in the center column. I have the theme vodoo dolly and everything works just fine except in the damn IE. The text in the center column moves all the way down and I don't know how to get it back up.
Here's a screenshot for better understanding: screenshot
OK, I tried setting $head (to add a script) by calling drupal_set_html_head() on index.php. That does work, but I'm not sure I see any advantage to setting it that way over just adding the script to page.tpl.php. Either way, I'm adding a big messy block of code. Is there another, vastly superior way of doing it? Or, if not, are there good reasons to do it in index.php rather than page.tpl.php, or vice versa?
Is there a way (probably in templete.php) to cut word length in a (any) block?
For example long urls or words may break css based layout in IE. So the target is to make word (or li item) no longer then X characters in a block. And this issue may apply to block output by any module not only a custom php block.
I have been trying various ways of implementing drupal_path_js in order to properly add a JS file to the of my page template.
I've searched the entire internet, and the closest I think I've come to finding a solution is: <?php drupal_add_js(drupal_get_path('theme', 'nameoftheme') . "js/minmax.js") ?>
Theoretically, this should get the path to this theme folder and output the
I go to administer so i can edit one of my default templates.
There should be something about the PHPTemplate Engine but
the isnt anything, the only thing that i see the template menu templates.
Just see this jpg