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?

Comments

rfay’s picture

Status: Active » Fixed
StatusFileSize
new673 bytes

The 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.

rfay’s picture

I 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.

Amazon’s picture

Is there a reason to give all authenticated users theme changing access versus just the implementers which have been promoted to admin?

rfay’s picture

My 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rfay’s picture

StatusFileSize
new938 bytes

Reposting the script, as it has probably changed along the way.

Component: staging.drupal.org » Other