plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
Snippet: processing as template doesn't work  (#2606)
IssueI'm using this code tmpl_unless user.isVisitor My parameters here /tmpl_unless in a Snippet where I enabled processing as template (with the proper brackets of course). The problem is that "My parameters here" get also displayed to a Visitor Mac and Mac OS X Server power user
Solution Summary
Comments
crythias
0
9/13/2006 7:12 am

You'd be better off using the GroupText Macro.

--
Maintainer of an unofficial WebGUI FAQ Please contribute questions or answers!
When asking questions on this forum, please indicate (at least) which version of WebGUI you are using. Optional, but sometimes helpful, are your Operating System name and version, PERL version, and Apache version. The little icons next to my picture indicate my IM status. Yes, you are welcome to IM me. I am not an employee of Plain Black. My offers of assistance are subject to the general disclaimer of this discussion board that my answer may be completely wrong. Have a great day!

www.gwy.org U2U crythias on #webgui on irc.freenode.net

maxscience
0
9/20/2006 3:50 pm
I'll check that but why complicating things when there is a feature like "processing as template" in Snippets? The point is that it doesn't work :( Mac and Mac OS X Server power user
dwilson
0
9/25/2006 5:52 pm

Actually, the snippet's being processed as a template with session template vars only, as listed in WebGUI::Asset::Template::Parser::addSessionVars.  isVisitor isn't one of them.

The comment in that function says further use of session template vars is deprecated, however.  Hrm. 

perlDreamer
0
11/3/2006 6:30 pm

This is not a bug.

The documentation for the Snippet says that if you enable Process as a Template that you only get access to the session variables. 

If you want the containing Asset to process your snippet as a template, you should not request that the Snippet itself be processed as a template. 

Details
Ticket Status Closed  
Rating0.0 
Submitted Bymaxscience 
Date Submitted2006-09-11 
Assigned To unassigned  
Date Assigned2012-02-11 
Assigned By 
Severity Fatal (can't continue until this is resolved)  
What's the bug in?  
WebGUI / WRE Version 7.0.7  
URLbugs/tracker/snippet-processing-as-template-doesnt-work
Keywords
Ticket History
© 2012 Plain Black Corporation | All Rights Reserved