Hi Matt,
Quote:
Originally posted by memobug
1) Is the html between the conditionals parsed, that is if I use a variable name in the html there will it be replaced with its value or will it stay as-is?
2) Can I put a "virtual include" in there in the html conditional? I've done this before using php-include template, but I'm wondering if I can get around that.
|
The parsing of templates does not change after you installed the hack. So you can answer all your questions according to this fact: Your advanced template would exactly do the same parsing if it was a normal vb template.
The hack only checks the template if there is special conditional tags inside and acts like this:
a) if the template does not include any conditional, it takes no action and returns the entire template just like a normal vb. template.
b) If the template has conditionals, the hack checks them one by one and
ba) if condition is FALSE, it deletes this condition (and its HTML code in between) from the template, as if it never existed in the template
bb) If condition is TRUE, it deletes only the condition tags and keeps the condition's HTML code in between so that it will be parsed.
As you see it does not interfere with vb's default template processing in anyway..
Hope this helps..