Hi all -
I'm modifying a render-handler in CommonSpot but this is just a CF question I
think. I need to add a cfif statement in here somewhere but I can't figure it
out. Basically, I don't want the borderBottom code (which is a gray line) to
display if the field isn't used. Where and what kind of cfif statement can I
add in so that that div doesn't write out unless the texblock is used? You can
see that I have a cfif for an elementdata field but these textblock-nohdr
fields are different.
Thanks! Any help gratefully appreciated!
-----------------------------------------------------------------------------------------------
<cfoutput></div>
</td>
<td>
<div id="center-coll-wrapper">
<div
class="center-coll-box borderBottom"></cfoutput>
<!---
extra text 2 --->
<cfmodule template="/commonspot/utilities/ct-render-named-element.cfm"
ElementName="genericLeftColExtraText2"
ElementType="textblock-nohdr"><cfoutput>
</div>
<div
class="center-coll-box borderBottom"></cfoutput>
<!---
extra text 3 --->
<cfmodule template="/commonspot/utilities/ct-render-named-element.cfm"
ElementName="genericLeftColExtraText3"
ElementType="textblock-nohdr"><cfoutput>
</div>
</cfoutput>
<cfoutput>
<cfif
len(ouObject.getCustomElementData().ou_welcome_text)>
<div
class="center-coll-box borderBottom">
<img
src="#imageDirectory#/welcome_18.gif" alt="Welcome" class="imageHeader" />
<div
class="cs-wrapper-center-col">
#ouObject.getCustomElementData().ou_welcome_text#
</div>
</cfif>
________________________________
Pamela Corey
IT Specialist
Public and Business Affairs Office
National Institute and Standards and Technology (NIST)
301-975-2170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4991
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm