Waited for a module like this to enter the Drupal scene and I congrat you guys.
Without having the proper time to explore the module I just have one wish. When naming the template files one should use the naming standard like you mentioned in your excellent description of your module, (node-XXXXXX.tpl), and by looking at the screen capture I could see that a name can be quite "end user unfriendly" with the naming standard visible to the end user, (node-schedule_training_session-edit). Many modules have this unwanted "feature", but I would like for the site admin or the site developer to have the option to have a more reader friendly name visible to the end user, and this would just require one extra column in the database record, with a template title, and a small tweak of the GUI. One obvious example to mention would be when creating content types. Small things like this is important I think.
Regards
Patrik
Comments
Comment #1
Nigeria commentedAgreed!
Comment #2
WebNewCastle commentedHi Jaxpax,
Thank you for your comments. :-)
And I appreciate your suggestion. I am trying to think about this. Currently, no "work" is required to set up the module per se. The module scans for all possible node template files within the current theme and displays them as an option. I like your suggestion - I am just wondering about how this might be done in a way that is not cumbersome since it seems it would require some extra "work" for the site administrator.
I realized after reading your comment that the screenshot I added was probably not a good one. The particular node template you referenced in the screenshot is actually a template for creating a content type used in conjunction with UC Node Checkout for signups for our training class. So that one does have a rather long name - I need to work on a better screenshot.
Comment #3
jaxpax commentedHi, WebNewCastle!
Sorry for not being able to answer your quick reply, until now.
I'm not a code monkey myself so my sugestion here may be somewhat out there, but one way would be to convert the scanned template files and by code remove the underscores and replace them with a space ("_" with " ") and have the first character in the template name turned in to a upper case character, before the template name is presented in the drop down box. I don't know how this sounds to you, but hopefully this gives you some inspiration? =)
/Patrik
Comment #4
WebNewCastle commentedHi Patrik,
That is no problem. And I appreciate the additional feedback - I wanted to try to understand your suggestion better. So, if I am understanding correctly, you weren't requesting a way to manually provide names for each available template, just an automated way of presenting it better in the drop-down?
There was actually another benefit to your post as well. After responding and looking at the screenshot again, I realized the "-edit" node template shouldn't even be in there at all since it doesn't relate to the display of a node at all. So I fixed that locally and I'll work on getting that in there (I'm still working on fully understanding CVS, committing code, etc.).
Comment #5
Wolfgang Reszel commentedI would like to have small thumbnails instead of a dropdown like the panels module use.
Comment #6
jaxpax commentedTo be honest I first was thinking of a way to manually add names to the templates but come to think of it that would not be necessary since only the admin is allowed to create the templates, so he can therefore give them appropriate names. That way the module won't be needing a GUI and no additional records in the database is required, nice simple and tidy. ;)
Sorry if it seemed that I was telling you how to do your job mate, didn't mean anything like that, just got carried away for a moment. =)
Thanks for your positive feedback regarding my post.
//Patrik
Comment #7
WebNewCastle commentedHi Patrik,
No problem at all. I appreciate suggestions that would help make the module as useful as possible. And your suggestion led to revealing an oversight on my part that needed to be fixed too - so that was also helpful.
Comment #8
WebNewCastle commentedHello Tekl,
Am I understanding correctly that you are requesting an interface to be able to manually upload a thumbnail for each node template?
Comment #9
WebNewCastle commentedModule update implements suggestions for display of templates. Thanks, Patrik.
Tekl, please feel free to post more info if you would like to do so. I'm not sure about changes that would require more work on an admin, but I would like to understand better and dialogue about your request on another thread if you are interested.
Comment #10
jaxpax commentedThank you WebNewCastle, I will install this module and try it, and hopefully implement it really soon. =)
Cheers, mate!
//Patrik