Try this:

<!-- <%img_Image1%> -->
<reddot:cms>
<if>
<query
valuea="Context:CurrentPage.Elements.GetElement(img_Image1).GetHtml()"
operator="!=" valueb="String:">
<htmltext>

<!IoRangeConditional><img src="<%!!
Context:CurrentPage.Elements.GetElement(img_Image1).GetHtml()!!%>"
alt="<%att_Image1%>"><!/IoRangeConditional>

</htmltext>
</query>
</if>
</reddot:cms>

You'll need to make sure that the image placheolder (img_Image1) is
sitting somewhere in the template - and isnt just referenced within
Render tags  - otherwise your image will fail to publish (the reason
why it is commented out above the render tag block)

Its worth nothing that this workaround wont work if you add extra
attribute values (such as height, width etc) within the conditional
block. (Unfortunately you are unable to check for values within
attributes or info elements using render tags. )

Hope that helps!

Cheers,
Kim


On Apr 15, 6:22 am, damon <[email protected]> wrote:
> Hi guys,
> I have some html code with an img element ("img_Image1")  and an
> attribute of the image element ("att_Image1"), encased in a
> conditional block.  Now, both elements have to be present for it to
> show.  Is there any way to elegantly omit the attribute from the
> conditional check?  The attribute contains image credits and is
> sometimes blank.
>
> I would prefer to not use any preexecute code. Any help would be much
> obliged.

-- 
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.

Reply via email to