Closed (fixed)
Project:
Zenophile
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2009 at 16:42 UTC
Updated:
9 Apr 2010 at 18:00 UTC
Why are you not allowing numbers in the theme name? Numbers are perfectly valid and useful.
I use numbers in my custom themes to version them. Yes, I know there is a version field in .info. The reason I do that is so that multiple versions of a theme can be run at the same time on the same site. I do this when upgrading from say version 1 to version 2 of the theme so that v1 can stay as the user default and admins and developers/themers that have the ability to change their theme can change only their theme to v2. This allows us to act like a continuous build and test without having to copy new content all the time to dev or staging sites without affecting the site or its users.
Comments
Comment #1
Garrett Albright commentedBecause the manual subtheme creation guide says so.
So the question becomes, why does the guide say so? Well, I'm not sure. I tried asking in #drupal, and "ksenzee" thinks it might only be because theme system names are used in the names of various PHP functions, and PHP functions can't begin with a digit, though they can appear elsewhere in function names. But it was simpler to say "don't use any digits in theme names" than "don't use any digits at the beginning of theme names." I guess it's same to assume that until I hear otherwise.
By the same token, restricting system names to only lowercase letters may also be a false limitation.
That being said, will I change Zenophile to allow numbers? Well, I'm not sure. Whether it's possible or not to use numbers (or capitals) in Zen subtheme names, the docs still recommend against it, for whatever reason.
Until if/when I change this, could you get by by spelling out the numbers, maybe - theme_one and theme_two and theme_three? Or Roman numerals: theme_i, theme_ii, theme_iii.
Comment #2
joachim commentedSubscribing. I want my theme to be called 'gulf2010' and I can't use zenophile because of this flaw.
Comment #3
Garrett Albright commentedOkay, okay. Please check out the next dev release once the robot has packaged it; it will let you create a theme with a number in the sysname. (The description on the "System name" field still says otherwise, but the verify function for the form won't stop you anymore.) Haven't extensively tested it yet, though.
Comment #4
Garrett Albright commented