MonkeyCMS Forum

Go Back   MonkeyCMS Forum > Other MonkeyCMS Discussion > Feature Suggestions > Implemented Suggestions
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-21-2008, 04:19 PM
PhilippeMartin PhilippeMartin is offline
Senior Member
 
Join Date: Nov 2008
Posts: 117
Default Option to insert template names in html source

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.
Reply With Quote
  #2  
Old 11-21-2008, 10:42 PM
chrisjlocke chrisjlocke is offline
Super Moderator
 
Join Date: Apr 2007
Location: Essex, UK
Posts: 1,058
Default

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>&lt;!<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 10:45 PM.
Reply With Quote
  #3  
Old 05-16-2009, 04:59 PM
chrisjlocke chrisjlocke is offline
Super Moderator
 
Join Date: Apr 2007
Location: Essex, UK
Posts: 1,058
Default

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:
<!-- Header  //-->
 

<!-- Error:GenericMessage  //-->
 
<h1>Login Failed</h1>

<
p>The username or password you entered is incorrect. If you have forgotten your passwordplease click <a href="forgottenpassword.php">here</a>.</p>
<!-- 
Footer  //--> 
but if some content is displayed, then the name of the content template isn't displayed.

PHP Code:
<!-- Header  //-->
 

<h1>Welcome to monkeyCMS</h1>


<
p>CongratulationsYou have successfully installed monkeyCMS and are ready to start building your powerfulflexible web site.<br/><br><br/><br/><br><br/>Please remember to check the <a href="http://www.monkeycms.com/index.php?page=Documentation">monkeyCMS documentation</a> for everything you need to customise monkeyCMS and create a unique content-driven website.<br/><br><br/></p>
<!-- 
Footer  //--> 
Is this by design, a limitation, or just plain lazyness?
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed
Reply With Quote
  #4  
Old 05-20-2009, 02:15 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Quote:
Originally Posted by chrisjlocke View Post
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:

 


 
[b]Login Failed[/b]



The username or password you entered is incorrect. If you have forgotten your passwordplease click here
but if some content is displayed, then the name of the content template isn't displayed.

PHP Code:
 

[b]Welcome to monkeyCMS[/b]




CongratulationsYou have successfully installed monkeyCMS and are ready to start building your powerfulflexible web site.





Please remember to check the monkeyCMS documentation for everything you need to customise monkeyCMS and create a unique content-driven website
Is this by design, a limitation, or just plain lazyness?
More a case of oversight I'll add this to my to do list for 1.5.0 beta 2.
Reply With Quote
  #5  
Old 06-23-2009, 11:17 AM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Quote:
Originally Posted by Colin View Post
More a case of oversight I'll add this to my to do list for 1.5.0 beta 2.
This is now in
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:55 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© Poisonous Monkey