![]() |
|
|
#1
|
|||
|
|||
|
I have no idea if it's possible, but I would love to have an option (like a switch somewhere in the site settings) that would cause MonkeyCMS to add (at rendering time) a html comment at the bottom of each template it uses to build a page, showing the name of that template.
Being a comment it would be visible only when viewing the html source, and it could be a great help for newcomers like me who sometimes have to browse through lots of templates to figure out which one renders a given part of a page. ![]() |
|
#2
|
|||
|
|||
|
Wouldn't a comment at the top be more beneficial? ie, 'the xyz template begins here' rather than 'this is the end'.
I've got into the habit now of adding <b><!<i></i>-- Page:<i></i>Default --></b> (or whatever) at the top of templates, so its easy to see how the page has been constructed. The only annoyance is that due to 'technical reasons' the spacing and indent isn't kept, so the HTML source for a page contains no formatting. Index templates are the worst - its one huge block of HTML! :nuts:
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed Last edited by chrisjlocke : 11-21-2008 at 11:45 PM. |
|
#3
|
|||
|
|||
|
Just a bump to this. Seems there is a site switch to allow template names to be inserted into the HTML source, but this doesn't work for content templates. So, if the wrong login details are submitted (for example), the HTML source contains Error:GenericMessage template heading
PHP Code:
PHP Code:
![]()
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed |
|
#4
|
|||
|
|||
|
Quote:
I'll add this to my to do list for 1.5.0 beta 2. |
|
#5
|
|||
|
|||
|
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|