Closed (fixed)
Project:
Custom Page
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Aug 2008 at 08:19 UTC
Updated:
3 Nov 2008 at 20:51 UTC
Might it be better to use a naming convention something like custom-.tpl.php instead of just .tpl.php? If you were to use more than a couple of these, looking at a theme directory would be slightly confusing. Furthermore, naming the files like this makes it easy to recognise that they belong to this module, and groups the files together in a typical, alphanumerically sorted directory listing.
Comments
Comment #1
niklp commentedGrr filtered... the first sentence should have read:
Might it be better to use a naming convention something like
custom-<name>.tpl.phpinstead of just<name>.tpl.php?Comment #2
Setzler commentedI concur.
Comment #3
irakli commentedI think this is a great idea. Furthermore, I think the solution should be even more flexible, where users can define the "prefix" for the template.
Some may like it to be custom-, some may like it to be blank, and some might like it to be the name of their girlfriend or a boyfriend :)
Thanks, I will try to implement this soon.
Comment #4
irakli commentedComment #5
niklp commentedHm, not sure about the custom naming thing... it would make it more difficult for people examining the theme "from fresh" (ie, sigh unseen) to determine that custom page module was the cause of the "weird" filenames.
I really think it ought to be standardised. If there is room for debate on what that should be, let's open the floor up for discussion.
Comment #6
irakli commentedNikLP,
the default can be standardized. That should be good enough.
Comment #7
febbraro commentedThis is in CVS waiting for a release.
I have allowed it to be customized, but it actually defaults to blank as to not break existing installations that already have custompage implementations using no prefix.
As a standard naming convention I would suggest always using 'custompage'
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.