HOME | FERGUSON Digital Blog

Add HTML To CFLayout Title

ColdFusion Add comments

Did you know that you can add HTML items to the title of a CFLAYOUTAREA?οΎ  This works out really well if you would like to include an icon or special button that is completely independent of the content being displaying inside the layout.

<cfset IconFolder="<img src="&Chr(34)&"/Info.png"&Chr(34)&" width=20 height=20 />">

<cflayout type="border" name="PanelParent" align="left" fittowindow="yes">
   <cflayoutarea position="left" title="#IconFolder# INSTRUCTIONS" size="250">
      Stuff
   </cflayoutarea>
</cflayout>

The code above will place an icon in the title just before the word "instructions". Hope you can find a good use for this one! Enjoy!

If you find this post useful please leave a comment and let me know how you used the information.

0 responses to “Add HTML To CFLayout Title”

Leave a Reply




© Copyright 1997-2024, All Rights Reserved Coldfusion and MS SQL2008
Powered by Mango Blog.   Design by FERGUSON Digital
o:Event name="beforeHtmlBodyEnd" />