Category — Web Development
In Drupal, Theming, Web Development
04 Aug, 2008
Ever wanted more than just dumping the content of the node you’re in, or it’s additional variables? In Drupal you can still do this using a basic PHP command, get_defined_vars() .
Open up any of your template files and paste the following code in (generally just page.tpl.php).
print '<pre>'; print_r(get_defined_vars()); print '</pre>';
The result is a dump of all variables available to you in your theming work!
27 Jul, 2008
One of the major techniques in CSS is the use of CSS sprites to replace list item link elements (such as RD’s menu above) with images.
However in Firefox, those link elements when clicked produce an ugly outline around the link element. This is also evident for embedded flash objects such as sIFR when selected.
It’s really simple to remove these, either apply the following code in your CSS file to all links, or apply to your specific set of CSS Sprites. All we’re doing is forcing no outline for these elements.
a, a:active, a:hover, a:visited{
outline:0;
}
To remove the outline from flash objects such as sIFR, use the following variation:
a, a:active, a:hover, a:visited, embed, object{
outline:0;
}

