I think we've agreed that the name of a sandbox theme should be <devname>_bluecheese.
However, asking the individual user to do this is onerous and makes development quite difficult.
I'll try to make a script that checks out the sandbox themes, processes the name change, and puts it in place. That way we can avoid the namespace collision that have paralyzed us on this so far. And it will let developers use the "bluecheese" name.
Here's the approach I want to take:
1. Developers will use a copy of the bluecheese theme, in their sandbox. That should make life easy for them. They will use a directory called "bluecheese" and an info file bluecheese.info.
2. The script will rename "bluecheese.info" to bluecheese_devname.info.
3. The script will change the theme name in the .info file to bluecheese_devname.
4. The script will change all occurrences of "bluecheese_" in template.php to "bluecheese_devname_"
Comments?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | update-svn-change-name.sh_.gz | 938 bytes | rfay |
| #1 | update-svn-change-name.sh_.gz | 673 bytes | rfay |
Comments
Comment #1
rfayThe script is deployed and running to check out everything every 5 minutes, changing the name of the theme to bluecheese_dev.
I would imagine there will be some issues, so let me know.
The script is attached.
Comment #2
rfayI went one step farther and automatically update so that these themes are enabled, and gave authenticated users the 'select different theme' privilege, so all themers can just check in a theme, wait 5 minutes, and log in, go to /user, click 'edit', and choose their updated theme.
Comment #3
Amazon commentedIs there a reason to give all authenticated users theme changing access versus just the implementers which have been promoted to admin?
Comment #4
rfayMy idea was to not even have to grant admin to all those users. That's why I did this. It's a normal privilege (allows you to change your own theme). It does no damage. When a user uses this privilege it affects only their own view of the world.
Comment #6
rfayReposting the script, as it has probably changed along the way.