Hey Jon,
Thanks for the help on the earlier question. I have another.
I'm trying to use a Context object in a reddot:cms query. When I use <%!! Context:CurrentIndex.GetRootIndex().Page.GetElementByName(opt_myoption).GetHtml() !!%> in my template code and the Root page DOES NOT have that opt_myoption element, it works ok because the value just comes out as blank (""). But when I try to use that piece in a reddot:cms query, ex:
<reddot:cms><if><query valuea="Context:CurrentIndex.GetRootIndex().Page.GetElementByName(opt_favicon_package).GetHtml()" operator="!=" valueb=""><htmltext>DO THINGS</htmltext></query></if></reddot:cms>
I'm getting the error:
RequestPageFromPageBuilder: Page with id 22695: BuildNavigationErr: ERROR#5, Value does not fall within the expected range.
I know that this is because the element doesn't exist, but how the heck can I perform the query and check if the element DOES EXIST first? I can't nest queries, I've already tried that. Any insight?