Continued Development
I spent some time this weekend working on porting the site over to Drupal. Every day I work with the system I'm amazed at how powerful it is. I needed to add some JQuery rounded corners to a css style and it was trivial. The only part that took me a few minutes to figure out was where to add the "drupal_add_js" function. It turns out it should go in template.php.
drupal_add_js('misc/jquery/jquery.corner.js');<br /> drupal_add_js('$(document).ready(function(){$(".box").corner();});','inline');
The preceding code adds rounded corners to all elements with a class equal to block.
- Login to post comments