GotFusion.com Where your journey begins
Full Service Web HostingNetObjects Fusion 7 Websites Portal

 


 

To have the current date displayed on your pages you can use any of the dynamic languages that are available. Placing the coding within Fusion is accomplished in exactly the same way regardless of whether you are using ASP, PHP, ColdFusion, or JavaScript.

Step 1:

Double click within the text box or table cell where you wish the date to appear to enter edit mode

Step 2:

Press CTRL + T to bring up the HTML dialogue box

HTML-insert the CF-date code

Step 3:

Paste the following code within the HTML insertion dialogue box input area

<cfoutput>#LSDateFormat(Now(), "mmmm d, yyyy")#</cfoutput>

This will produce a date formatted like: October 3, 2024

Date formatting in ColdFusion is very straight forward

mm dd, yy will display as: 10 03, 24
mmm ddd, yyyy will display as: Oct 03, 2024
m/d/yy will display as:  10/3/24

 

Step 4:

Custom Names CF ExtensionPress F11 to bring up the Page Properties palette

Press the Custom Names button to bring up the Custom Names Properties palette

Set the File extension to CFM from the drop down selection

This single page will be generated with the file extension of CFM. If you wish the date to show on all of your pages you should set the default site extension in Publish View to CFM

This tutorial will show you where this setting is located


 

View the PREVIOUS page

Return to the TOP of this page

View the NEXT page in this tutorial

 


|  Fusion  |  Web Design  |  Hosting  |  Resources  |  gotFusion Store  | 

Problems with this page?  

All content copyright © 2002, 2004 gotFusion LLC.  The name gotFusion and the gotFusion ® logo are registered trademarks of gotFusion LLC
Copyright, legal notice & privacy statement