I've noticed the same thing here, I just forgot to figure out what was going
Some templates just seem to not show up as a comment.
Librarian & Information Science News
----- Original Message -----
From: "George Clark" <gac@...>
To: "Jamie McCarthy" <jamie@...>;
Sent: Saturday, March 06, 2004 6:19 AM
Subject: Re: [Slashcode-general] template comments
> ** Reply to message from Jamie McCarthy <jamie@...> on Sat, 6 Mar
> 11:48:49 -0500
> Hi Jamie,
> > The template_show_comments var, which is on by default.
> Yes - it is on. (Set to 1)
> > You have that on and not all templates are generating HTML comments?
> > Which ones are missing?
> I get comments from many of the templates, but not all. For example, the
> themes/slashcode/templates/imageLink;misc;default template didn't generate
> for the embedded picture.
> A comment would have helped me figure out the workaround for the null
> size on my own.
> A quick check of my main web index page shows the following templates:
> <!-- start template: ID 108, fancybox;misc;default -->
> <!-- start template: ID 111, footer;misc;default -->
> <!-- start template: ID 117, getOlderStories;misc;default -->
> <!-- start template: ID 120, header;misc;default -->
> <!-- start template: ID 124, index;index;default -->
> <!-- start template: ID 150, pollbooth;misc;default -->
> <!-- start template: ID 172, storylink;index;default -->
> <!-- start template: ID 262, setrectop_img;misc;default -->
> <!-- start template: ID 68, admin;menu;default -->
> <!-- start template: ID 71, currentAdminUsers;misc;default -->
> <!-- start template: ID 91, dispStory;misc;default -->
> I expect that there are a lot more templates involved than just these.
> Other than the imageLink template, I'm not sure which ones are missing.
> page definitely includes the mainmenu, so no comment for
> mainmenu;misc;default. It is nested inside a fancybox, which does
> comment. And my mainmenu has an explicit include for
> sections_updated;misc;default, [% INCLUDE sections_updated;misc;default
> no comment for that one either.
> Is there some limit to the nesting depth for comments?
gac@... (George Clark) writes:
> Ahhh, Thanks... and looking for other Nocomm =3D> 1 instances,
> they are hardcoded all over the place. 54 instances in the
> R113 source.
> Also explains why my mainmenu doesn't display comments. Sure
> would make it easier to debug templates and page layout if all
> of these would honor the configuration variable.
I just committed a code change that allows you to set the
'template_show_comments' var to 2, overriding 'Nocomm =3D> 1' so that
slashDisplay() always emits the HTML comments.
That's probably not something you want to do for a production
website, as I noted in the code.
And it still won't show the HTML comments when a template is invoked
with [% PROCESS foo %] or [% INCLUDE foo %] from another template.
To do that we'd have to change all those into calls to slashDisplay,
which pudge says we could do, but I think that'd be way too slow.