Closed (outdated)
Project:
PHPTemplate
Version:
master
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2005 at 16:05 UTC
Updated:
13 May 2021 at 07:52 UTC
Jump to comment: Most recent
Comments
Comment #1
Bèr Kessels commentedI predict quite some confusion amongst the developers and users who use PHPtemplate if we change the name. No, I give this a -1.
I will try to phrase it nice:
I beleive that when people in a professional production environment, let their choices be dictated by a name, they are being very unprofessional.
Or, as I would like to phrase it (cannot withstand the urge to wrtie this down):
Such small minded people should get themselves together. Letting your choices be dictated by a name, phew. :). Obviously they are so boneheaded, that they do not beleive the guru/expert (Chris Messina) nor various wrtiings and posts about it (forums, books). ;)
Comment #2
adrian commentedI think that removing xtemplate from core, and making all the example / default themes be phptemplate will go a long way at getting rid of the
confusion.
Comment #3
dublin drupaller commentedmy two cents is it is a good idea to change the name to drupaltemplate....especially now as it is emerging as a powerful & popular theming engine.
(a) easier to search for
(b) makes more sense
(c) existing phptemplate users, I think, will get it straight away and I think the long term value over any short term confusion is well worth it.
Dub
Comment #4
TDobes commentedI agree with Bèr. The name is good as-is because it accurately describes how templates are created: PHP itself is used to create the templates rather than adding the overhead of an extra template parser.
The term DrupalTemplate, on the other hand, gives the impression that we (meaning Drupal) have created our own template language, which may or may not be standardized in any way. It also implies that DrupalTemplate would be the ONLY way to theme Drupal, which is simply untrue.
For the same reason, "The Drupal Theming System" is terrifically misleading; there is MUCH more to the Drupal theming system than just PHPTemplate. What about phptal, smarty, xtemplate, and non-template themes (.theme files)? What about styling existing themes by just adding stylesheets? These all can contribute to Drupal's "theming system" and are actually part of theme.inc (in core) or other contributed bits of code.
I have no direct complaint about "DropTemplate", other than it may remind people of the now-disabled drop.org.
My vote goes for keeping the name as-is. I like the term "PHPTemplate." Sorry, guys.
Comment #5
killes@www.drop.org commented-1
Chris, get a clue bat and clue them in. Can be fun if done right.
Comment #6
factoryjoe commentedPersonally I don't care. I'm used to PHPTemplate and I know enough about it to know that it's not simply 100% PHP.
On the other hand, the fact that two prominent designers (who speak HTML just fine but PHP causes them to go into convulsive sneezing fits) opted away from PHPTemplate even though the description of what they wanted was, not surprisingly, PHPTemplate functionality, lead me to make this suggestion.
It's not just some floosy preference -- the name is how we communicate the value and definition of PHPTemplate to designers -- talented designers who, for whatever reason, think PHP (and any other scripting language) is over their heads. I don't expect to win this discussion now; I knew that when I posted this issue. At the same time, I do feel that the perceived barriers to adopting PHPTemplate are large and that there aren't a wide array of decent PHPTemplate themes available yet further speaks to the need to attract more designers.
I was recently discussing adopting Drupal/CivicSpace in an international community group and the strongest complaint I received was:
In suggesting that we reconsider the name of PHPTemplate, I'm only suggesting that we attempt to lower the barrier to presumed "non-coders" to using PHPTemplate. C'mon, throw'em a rope. Before they know what hit'em, they'll be coding PHP and won't even be able to remember why they were ever intimidated. And it's that first scary step that I feel like we need to address... and if not in tweaking our language, what else might we do? ...that is, besides pummeling designers into submission (fun as that might seem)?
Comment #7
killes@www.drop.org commented1) Drupal has in general much less themes than other CMSes. This is due to the complexity of the task to produce a theme for more than the frontpage.
2) I think what we need some serious PR measures to change this. Changing a name won't cut it. Chris, you should maybe do a series of blog posts about theming with phptemplate. Roland and Boris have done something like this and I guess they wouldn't mind if you added to their effort.
Comment #8
killes@www.drop.org commentedThe forces that commit to cvs apparently didn't agree with the idea.
Comment #9
grohk commentedActually I agree with Factoryjoe on this issue. Not, only can in be confusing to many end users, but the PHP developers discourage inclusion of the PHP "brand" name in projects like this. So much so that PHPTemplate might be in violation of points 3 and 4 of the PHP version 3 license:
That being said the PHP police most likely aren't going to care too much, but they care enough to address the issue in the PHP License FAQ:
Sorry to be a stickler, but at the very least, the someone should contact the PHP group and recieve the authorization in writing that the name PHPTemplate is fine by them before this is marked as "won't fix".
Comment #10
adrian commentedActually.
i am going to rename it to 'template', and integrate it deeper into Drupal core.
But it won't have anything to do with changing the name for whatever reason. It will be because i want to make everything that is great about phptemplate available to all themes/templates. Stuff like loading the template.php file for extra settings / hooks, etc.
The template engine part of phptemplate is 4 lines of code. The rest is all logic about gathering variables and handing them over to something to be displayed.
Comment #11
TDobes commentedAdrian: Note that Drupal core already supports supplementing individual templates and/or styles with additional PHP code through use of .theme files. I need to write some official docs for this, but here are a couple descriptions: one two three
I like this method better than template.php, which seems intent on naming every function with the
phptemplate_prefix. Anyway, 'twas just a thought. I'll reserve judgment until I see the actual patch you're suggesting. Please try to keep traditional .theme files and other theme engines in mind as you fiddle with the theming code... a lot of us are still running (many) sites that are not phptemplate (or whatever we're calling it)-based. :-)Comment #12
adrian commentedNo. You misunderstand. Themes would still work exactly as before. As will theme engines. Infact, your life would probably be simplified.
Your custom template engine loading code would still work , but it would work just as fine without it. You would also have access to phptemplate's mechanism to add new functions through stub functions. (ie: create a 2 line function that enables loading of a hookname.xtmpl file)
Comment #13
adrian commentedand naming every function phptemplate_ is just so that you maintain copyability. You can name your functions themename_ too, but you just won't be able to copy your templates without modifying the contents of the files. Even in your .theme files you don't need to name your functions themename_
Comment #14
avpadernoI am closing this feature request, as it's for a not supported project version. If you want to see this feature implemented for a supported project version, please re-open this issue.