Create the .cfm which you want to convert to custom tag and call the file with cf_xxx(name of the .cfm file). Suppose you created the .cfm file with name test.cfm. you can call it as custom tag like <cf_test>.
Create a ColdFusion page(.cfm) which you want to convert to custom tag that shows the current date:
<cfoutput>#DateFormat(Now())#</cfoutput>
Save the file as date.cfm.
Create a ColdFusion page, the calling page, with the following content:
<html>
<head>
<title>Date Custom Tag</title>
</head>
<body>
<!--- Call the custom tag defined in date.cfm --->
<cf_date>
</body>
</html>
Save the file as callingdate.cfm.
View callingdate.cfm in your browser. This custom tag returns the current date in the format DD-MMM-YY.
Posted Date:- 2021-11-29 06:50:22
can we have multiple queries in cfquery
can we query multiple databases in one cfquery?
Explain few coldfusion functions?
Explain geofencing and how do you implement in coldfusion?
Differences between rest and soap webservices?
Explain CFFILE with actions(read, write, delete, rename, update etc) ?
Explain the purpose of CFTRANSACTION ,Multiple datasources, databases,commit, rollback, savepoint?
How do you work with EXCEPTION HANDLING, ERROR HANDLING (OnError, CFERROR,CFTRY) ?
Differentiate and explain the usage of CUSTOM TAGS (CFMODULE/CF_XXX) VS CFINCLUDE VS CFC ?
Differentiate and explain the usage of CUSTOM TAGS CF_XXX VS CFMODULE?
REDIRECTION using CFLOCATION (Addtoken values and its benefits)?
Explain the security features implemented in coldfusion?
Explain QUERY OF QUERIES (reusable, better performance) Using DBTYPE="Query")?
STRUCTURE (Structure key-value functions, conflicts with index order)?
LIST Functions(Nth element in list, count, length)
Explain CFOUTPUT, NESTED CFOUTPUT(GROUP), QUERY CFOUTPUT?
What is WDDX? Where is it applicable?
what is the difference between cfinvoke and cfobject?
What are ColdFusion components? What is CFobject?
What is CFX tag? What is the use?
How to implement method overloading and overriding in coldfusion?
What is the difference between Custom tag and Coldfusion Component?
What are the different types of resources through which ColdFusion can communicate?
Explain cfimport and its usage?
explain the email tags and subtags to send an email?
Explain different types of loops in coldfusion?
What is used to create connections between ColdFusion Web sites and databases?
Explain about application, session, client variables and their usage and storage of the variables?
Explain the scopes in coldfusion?
When we have Application.cfm in root and child folders. Which one will be given preference?
Explain how to do mail settings, debugging settings and schedulers?
Explain about ColdFusion administrator?
Explain coldfusion Architecture?