Hi,

could you explain what the drush command actually does? Is it only altering the template.php and adding a js file? Is there a way to „activate“ the components manually without using drush? What's the advantage of the components compared to those modules for Respond.js and Modernizr?

Comments

alexweber’s picture

Assigned: Unassigned » alexweber
Status: Active » Needs review

Hi Wolfgang,

The steps to manually enable components are variable and depend on each one, and to be honest I don't have the time to document each and every one! :S

Basically what the components do is include the necessary css/js files and add them to the page in template.php, nothing really special but the convenience factor is awesome, one Drush command and you're set to go! :)

alexweber’s picture

Status: Needs review » Needs work

After giving this some further thought I've decided to improve the documentation surrounding components and make them easier to manually install - although manual installation will be at the bottom of support priorities (this was meant to be a Drush-only feature!)

Wolfgang Reszel’s picture

Thanks for the clarification. I don't want to learn Drush for just enabling Modernizr.

Btw. are there benefits instead of using the separate module? And why is HTML5Shiv an option in the GUI and eg. Modernizr not? I understand you would like to make the template clean, but with HTML5Shiv alone the responsive layouts (media queries) will only work in modern browsers.

alexweber’s picture

@Wolfgang,

1 - The components were created because certain libraries can't be included with the theme due to licensing limitations. Modrernizr is one of them. Drupal.org won't let me include the library directly (even the Modernizr module makes you manually download the library and copy it to your site's directory).

2 - The HTML5Shiv has a compatible license and that's why it is included and deeply integrated.

3 - The benefit of using components as opposed to doing the work yourself is that they are pre-integrated. In some cases it is as simple as adding a drupal_add_js() line, in others the integration is deeper.

4 - Drush is dead easy to learn and you will save yourself countess hours of time with tedious admin tasks. Don't be afraid to try it! :)

alexweber’s picture

Status: Needs work » Active

Needs work assumes there is a patch to work on.

alexweber’s picture

Category: feature » task

This is a job for the new handbook!

alexweber’s picture

Version: 7.x-2.0-beta9 » 7.x-2.x-dev
alexweber’s picture

tagged

alexweber’s picture

Status: Active » Fixed

You can find the specific handbook page here: http://drupal.org/node/1515894

alexweber’s picture

Status: Fixed » Closed (fixed)