I've used similar logic quite a bit lately in Render Tags .. I think
your problem is probably actually nesting another set of the
reddot:cms tags. Instead of that try something more like (I haven't
put the actual conditional values in but the structure is sound:
<reddot:cms>
<if>
<query valuea="" operator="==" valueb="">
<htmltext>
Some stuff to output if the first condition is met.
</htmltext>
<if>
<query valuea="" operator="==" valueb="">
<htmltext>
Some stuff to output if the second condition
is also true.
</htmltext>
</query>
</if>
</query>
<query type="else">
<htmltext>
Some stuff to output if condition one wasn't met so we
don't see output from the above 2 structures.
</htmltext>
</query>
</if>
</reddot:cms>
On Feb 12, 12:22 pm, "C. Kent Jordan" <[email protected]> wrote:
> Hello all,
>
> I need the ability to do simple if then else constructs and simple
> comparisons withrendertags and/or a scripting language beyond
> therendertagcapabilities.
>
> One example that contains nested reddot:cms tags in a single foreachtag, all
> of which I believe are not supported or working.
>
> <reddot:cms>
> <foreach itemname="item" object="Context:CurrentIndex.SubIndexes"
> countername="counter">
> <output type="string">
> <htmltext>
> <li>
> <a href="<%!! Store:item.GetUrl() !!%>"> <img src="<%!!
> Store:item.Page.Elements.GetElement(img_SectionImage).GetHtml() !!%>"
> alt="<%!! Store:item.Headline !!%>" /> </a>
> </li>
> </htmltext>
> </output>
> <!-- Nested conditional test -->
> <reddot:cms>
> <if>
> <query valuea="<%!! Store:item.counter !!%>" operator="<" valueb="Int:
> 4">
> <htmltext>
> <div class="divider"> | </div>
> </li>
> </htmltext>
> </query>
> </if>
> </reddot:cms>
> <!-- end if -->
> </foreach>
> <!-- end foreach -->
> </reddot:cms>
>
> how do I accomplish this is RedDot. I can find no documentation on the
> prior ASP like syntax, am I to assume that all classic ASP functions
> and methods are supported. (if so how do I pass data structures to the
> ASP functions)
>
> I know from prior posts that RedDot is recommending RenderTag over ASP
> and PreExecute due to performance problems, so what is one to do?
>
> Sorry for the long post but I'm getting desperate to solve even the
> simplest things in RedDot.
>
> Regards, Kent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---