Showing posts with label cck. Show all posts
Showing posts with label cck. Show all posts

Thursday, 25 November 2010

Drush - enabling modules with a space in their name

Problem: Within CCK there is a module called "Content Copy".

drush en "content copy" returns an error. How do I install a module with a space in it's name?


Answer: Use drush sm to list the available modules in your drupal instance.

In the "Name" column of the output generated you will see

Content Copy (content_copy)

in the CCK section.

Therefore the drush command is:

drush en content_copy

Drush - installing CCK

Problem: drush en cck will installed the approved cck release, but not the dev version. How do I install the dev version?


Answer: drush en cck-6.x-2.x-dev

This will install the latest dev version. But when it comes to enabling CCK the syntax is somewhat different - remember that "cck" is not a module , its a package of modules, with the core of it being the "content" module.

Therefore to enable CCK , the drush command is

drush en content