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
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:
Press 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
This page was written by and is maintained by turtle
|