11
rowdie
Re: Comments in templates
  • 2005/11/18 12:51

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


I'd say the point is that both styles of comments are used presently.

I like your idea, LB. Some templates can get pretty complicated when they also include other templates within it. Your suggestion could save time when trying to trace back through the templates to find the one you need.

Rowd

12
Dave_L
Re: Comments in templates
  • 2005/11/18 13:34

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The advantage of using Smarty comments is that the comments get filtered out when Smarty compiles the template, so there's less HTML to download and render. Unless there are a *lot* of comments, it won't make that much difference, but anything that reduces the size of web pages is good.

13
LazyBadger
Re: Comments in templates

You lost my point...
I want see these comments in generated site page on live site!
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

14
frankblack
Re: Comments in templates
  • 2005/11/18 15:45

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


A guess from me what LB wants to achieve: If you look at the source-code of the page the comments will be displayed.

Example php-script:
$xoopsTpl->('modulecomment1''');


So you can track back where the output was initiated and where it was displayed.

This would be an item for the module-guidelines.

Right or wrong LB?

15
batdevis
Re: Comments in templates
  • 2005/11/18 15:49

  • batdevis

  • Just popping in

  • Posts: 41

  • Since: 2002/8/16


Yes, but I think that in this case an html comment is better, because you can find the template to modify viewing the source of the page from the browser.
Devis_

16
Dave_L
Re: Comments in templates
  • 2005/11/18 17:01

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


In that case, I think it would be better to get XOOPS or Smarty to insert the comments for you, rather than manually editing every template. Maybe a Smarty filter could do it.

Login

Who's Online

313 user(s) are online (206 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits