I need to show a graphic within the main drop navigation IF an image
element is filled out. First I tried to do it on the condition the
image's GetHtml() was null but that failed so I am trying to base it
off of a string being set using an option element. If the user adds an
image and selects "feature" then the graphic should display.
No matter what render tag query logic I use it always either fails or
evaluates to false. I even tried flipping the operator just to see if
I could always get it to be true but no matter what the query outputs
nothing.
I've tried the following variations based on my best guesses and a
couple of old posts on this group...
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement
(opt_listclass).Value" operator="==" valueb="feature">
<img src="<%!! Context:CurrentPage.Elements.GetElement
(img_navthumb).GetHtml() !!%>" alt="" />
</query>
</if>
</reddot:cms>
or...
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement
(opt_listclass).Value" operator="==" valueb="String:feature">
<img src="<%!! Context:CurrentPage.Elements.GetElement
(img_navthumb).GetHtml() !!%>" alt="" />
</query>
</if>
</reddot:cms>
or...
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement
(opt_listclass).GetHtml()" operator="==" valueb="feature">
<img src="<%!! Context:CurrentPage.Elements.GetElement
(img_navthumb).GetHtml() !!%>" alt="" />
</query>
</if>
</reddot:cms>
or...
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement
(opt_listclass).GetHtml()" operator="==" valueb="String:feature">
<img src="<%!! Context:CurrentPage.Elements.GetElement
(img_navthumb).GetHtml() !!%>" alt="" />
</query>
</if>
</reddot:cms>
and even...
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement
(opt_listclass).Value" operator="!=" valueb="feature">
<img src="<%!! Context:CurrentPage.Elements.GetElement
(img_navthumb).GetHtml() !!%>" alt="" />
</query>
</if>
</reddot:cms>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---