Whatever message this page gives is out now! Go check it out!
<cf_happybirthday name="Ted Cantor" birthDate="December 5, 1987">Please wish him well. |
<p> Happy Birthday Ellen!</p>
<p> May you have many more!</p>
</cf_happybirthdayMessge>Happy Birthday Ellen!
May you have many more!<cfoutput>#DateFormat(Now())#</cfoutput><head>
<title>Date Custom Tag</title>
</head>
<body>
<!--- Call the custom tag defined in date.cfm --->
<cf_date>
</body>
</html>| Attribute | Description |
template | Required if the name attribute is not used. Same as the template attribute in cfinclude . This attribute: · Specifies a path relative to the directory of the calling page. · If the path value is prefixed with "/", ColdFusion searches directories explicitly mapped in the ColdFusion Administrator for the included file. Example: <cfmodule template="../MyTag.cfm"> identifies a custom tag file in the parent directory. |
name | Required if the template attribute is not used. Use period-separated names to uniquely identify a subdirectory under the CustomTags root directory.Example: <cfmodule name="MyApp.GetUserOptions"> identifies the file GetUserOptions.cfm in the CustomTags\MyApp directory under the ColdFusion root directory. |
attributes | The custom tag's attributes. |
<cfmodule template="../mytag.cfm"><cfimport prefix="mytags" taglib="myCustomTags"><mytags:customTagName><mytags:custom_tag_name attribute1=val_1 attribute2=val_2>...
</mytags:custom_tag_name><cfimport prefix="ui" taglib="uiTags">
...
<security:validateUser name="Bob">
...
<ui:greeting name="Bob">
...