could be isent cacheable [[XXXX]]
test [!xxxx!]
hi
-
☆ A M B ☆
- 24,524 Posts
I think if the outer snippet is uncached and the inner snippet is cached it might work. Considering how the parser works, all cached snippets are parsed in the first pass, while uncached snippets get cached in subsequent passes. This way, the inner snippet gets evaluated, then the outer snippet gets parsed with the value of the inner uncached snippet already done. As long as the "GetGroup" snippet actually returns the value, it should work.
Another way would be to have the GetGroup snippet set placeholders, call it first, then call the login snippet and use the placeholder.
Anton, how does your snippet aquire and then pass the value of the group.
would it be easier to just put the group choice in a form and then use
return $_POST[’group’];
as the content of your [[GetGroup]] snippet?
p.s. I have never had a snippet function correctly when calling another snippet uncached as one of it’s parameters.