Active
Project:
Omega
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2013 at 01:09 UTC
Updated:
16 Sep 2013 at 00:08 UTC
Jump to comment: Most recent
Say you wanted to create a subtheme in sites/foo.example.com you still get prompted for enabling the theme / setting the theme to default. This is problematic because that currently happens globally. I believe that we will have to implement checks that validate whether the theme can be enabled after it has been created (by checking if it can be discovered by the current drush scope / drush site alias in use). That's the only reliable way. I guess that's enough really.
Comments
Comment #1
fubhy commentedComment #2
fubhy commentedI just refactored the way omega-wizard and omega-subtheme play together. Originally they both used a shared API function. Now, omega-wizard builds on omega-subtheme instead and invokes it internally after setting the options accordingly.
@see http://drupalcode.org/project/omega.git/commitdiff/acacc0580a91089d2046b...
It would be pretty simple now to add a validation step that checks if the theme that was just created lies in the current scope of the drush command (e.g. in sites/all or the same multisite instance that the drush command was invoked from). Alternatively we could add a check that only allows you to place the theme in either sites/all, the active profile, the active multisite or a theme that is in the current scope (one of the aforementioned three). The last solution sounds like it's the cleanest but it might confuse people when they don't see their site.example.com appear even though they have a directory for it. Thoughts?
Comment #3
fubhy commentedYeah, we still need that check ;)
Comment #4
jimmyko commentedOmega 4.1 is still having this problem.
And also the other omega drush commands cannot work as it always show omega not enabled.
================
Update: It is fixed after re-start the terminal.