Closed (fixed)
Project:
Zentropy
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
5 Mar 2012 at 10:50 UTC
Updated:
12 Apr 2012 at 20:11 UTC
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
Comment #1
alexweber commentedHi 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! :)
Comment #2
alexweber commentedAfter 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!)
Comment #3
Wolfgang Reszel commentedThanks 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.
Comment #4
alexweber commented@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! :)
Comment #5
alexweber commentedNeeds work assumes there is a patch to work on.
Comment #6
alexweber commentedThis is a job for the new handbook!
Comment #7
alexweber commentedComment #8
alexweber commentedtagged
Comment #9
alexweber commentedYou can find the specific handbook page here: http://drupal.org/node/1515894
Comment #10
alexweber commented