Drupal: How to add external links from any module


Drupal: How to add external links from any moduleIf it requires to add one or more external file/ files (like something.css, something.js), we can use drupal_set_html_head function (drupal 6.x only).

sample code:

drupal_set_html_head('

Drupal: Cut Piece (will be updated regularly)


Drupal: How to add external links from any module

If it requires to add one or more external file/ files (like something.css, something.js), we can usedrupal_set_html_head function (drupal 6.x only).
sample code:
drupal_set_html_head('

Drupal: CSS Browser Selector Module

This module might help to reduce cross browser css issues.

See this link for more: http://drupal.org/project/css_browser_selector

CSS Formatter and Optimiser

Check this out:

http://www.cleancss.com/

http://validator.w3.org/#validate_by_input

http://yuilibrary.com/forum/viewforum.php?f=94&sid=a09bc435b2c8f7077878b48b8a67e484

cakephp pagination auto increment

$prevPage = $paginator->counter(array('format' => '%page%'));
$nextPage = $paginator->counter(array('format' => '%pages%'));
$perPageTotal = $paginator->counter(array('format' => '%current%'));
$grandTotal = $paginator->counter(array('format' => '%count%'));

if($prevPage == 1)
$count = 1;
else if($prevPage == $nextPage)
$count = ($grandTotal-$perPageTotal) + 1;
else
$count = (($prevPage-1)*$perPageTotal) + 1;