Closed (fixed)
Project:
Sasson
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 01:28 UTC
Updated:
2 Nov 2013 at 00:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tsi commentedCool feature.
These is done by the Omega Tools module though, and not by the theme itself, on the other hand, it says "However, the functions this module provides could be used with any theme.".
Bottom line, ATM I really don't have any spare time for additional features, we still have work to do to get to a stable release here (e.g. this issue) but if anyone wants to implement that or at least see what is needed for this to work, they're welcome.
Setting this to postponed for now.
Comment #2
tsi commentedI won't be needing this so this won't be fixed unless someone wants to take this on.
Comment #3
ssherriff commentedI've created a rough drush command that can do this. I've based it on one I found for the Zen theme and adjusted it for 965.
Basically, the attached file should be included in the theme at the top level of the theme. That will make it so once someone downloads the theme, the command 'ninesixtyfive' will now show when you type 'drush help'. Oh, also, it needs to be renamed to 'ninesixtyfive.drush.inc'.
How it is run, is:
drush ninesixtyfive --name="My Subtheme" --machine_name=mysubtheme
You can actually run it just like this:
drush ninesixtyfive
That will create a theme called 'My theme' and you'll have to rename everything again if you want to name it something else, so it is probably best to name it exactly what you want to start with.
Comment #4
ssherriff commentedActually, here is a git patch file as well if you want to apply it to the code. I actually haven't created a patch in git before, so hopefully this worked.
Comment #5
tsi commentedReally cool, thanks !
In beta6 I have decided to lose the tar file and leave a SUBTHEME directory in the base theme, I guess this will require some changes to the drush file ?
Comment #6
tsi commentedThe SASS branch of 965 has a new home and is now called Sasson.
Comment #7
tsi commented-- double posted --
Comment #8
tsi commentedSuper cool, check this out (this will download Sasson, create a sub-theme and enable it) :
You can have full control on the theme name and machine name with :
Thanks !
Update - you can now create, enable the newly created theme and set it as the default theme in a single line, simply :
drush sns "My theme" -yThe -y automatically answers "yes" when prompted to enable the newly created theme and set it as the default theme.
Comment #9
z.stolar commented+1M!
This is absolutely great!
Comment #10
caiobianchi commentedI tried and it seems that the proper command is "drush sns my_theme". sns = sasson-new-subtheme
Nice to see it.
Thank you very much for your effort.
Comment #11
tsi commentedYes, we have been working on the script in the last few days and that is one of the things got changed.
Thought "sns" (Sasson New Subtheme) is more descriptive.
I have updated my comment.
Thanks
Comment #13
ahimsauziIncredible work guys!! #18 is the way to go works like a charm!
Comment #14
amirtaiar commentedI keep getting:
/
The drush command 'sns My theme' could not be foundComment #15
tsi commented@amirtaiar, try clearing your caches
Comment #16
amirtaiar commentedI did.
Try local, online... No success. Using MAC.
Comment #17
mxmilkiib commenteda cache clear worked for me.
a minor issue, but it would be nice to if the command respected drush site context, so instead of;
it would be;
test sub-theme was created in /var/aegir/platforms/d7-base-dev/sites/testsite.thingsandstuff.org/themes/testComment #18
tsi commentedGood point, but this is a closed issue, please open a new one and we'll discuss it there.