A new part of ColdFusion our development team has been looking into more is the custom tags (cf_). Soon to be used with the Polar CMS (Visit official site), custom tags allow you to have scripts and coding within a tag that can be called from a cfm page as shown below:

<!— CFM Page (cfcustomtag_caller.cfm)—>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>Call Tag</title>
</head>

<body>
<cf_cfcustomtag customVar=”test”>
<p>SOME HTML</p>

<cf_cfcustomtag form=”testFormCode”>
</body>
</html>

As you can see we are using a new tag <cf_cfcustomtag> with custom variables (customVar=”test”). These variables can be picked up within our custom tag cfm file we are about to create.

<!— CFM Page (cfcustomtag.cfm)—>
<cfoutput>
<cfif isDefined(“ATTRIBUTES.customVar”)>
<h1>#Now()#</h1>
<p>#ATTRIBUTES.customVar#</p>

</cfif>
<cfif isDefined(“ATTRIBUTES.form”)>
<p>#ATTRIBUTES.form#</p>
</cfif>
</cfoutput>

The above is a simple CFM file which has HTML and ColdFusion code. As you will notice we have named the file ‘cfcustomtag.cfm’ which is the same name as the tag: <cf_cfcustomtag> just without the cf_ at the start. Coldfusion will look for any files with the same naming tag.

You may ask why not use a <cfinclude> tag, but with cfincludes they can be slower and you are not able to reuse the cfinclude as easy as a cf_ custom tag. With custom tags you can lower the amount of code you need by using the extra variables (ATTRIBUTES).

Hope you enjoy using custom cf_ tags. Feel free to comment and add your code to show better ways of using cf_ tags. You may also want to research <cfmodule> tags.

Join the conversation! 717 Comments

  1. discount drug store eastlakes harris teeter pharmacy coupon code

    OpenMedShop http://openmedshop.com 10% OFF VOUCHER CODE:
    MEDS10

    discount drug store tamworth online pharmacy discount card

    Reply
  2. ivermectin cream 1% stromectol ivermectin for humans – ivermectin 1 cream
    http://stromectolabc.com/ ivermectin nz
    ivermectin buy stromectol ivermectin lice

    Reply
  3. zithromax cost zithromax online pharmacy canada zithromax capsules 250mg
    https://azithromycin1st.com/ zithromax price canada
    zithromax 1000 mg pills generic zithromax medicine where can i purchase zithromax online

    Reply
  4. cheap zithromax pills zithromax without prescription zithromax for sale 500 mg
    https://azithromycin1st.com/ zithromax azithromycin
    zithromax 500mg over the counter zithromax over the counter canada zithromax 500mg price in india

    Reply
  5. código promocional tinder cupon descuento farmacia campoamor

    10% DE DESCUENTO Código de cupón Marzo 2022 por OpenMedShop openmedshop.com es:
    MEDS10

    cupon descuento farmacia online ¿Qué hacer con el saldo de Microsoft Rewards?

    Reply
  6. buy zithromax online cheap how to get zithromax over the counter zithromax cost uk
    https://azithromycin1st.com/ zithromax for sale online
    zithromax online paypal buy generic zithromax online zithromax over the counter uk

    Reply
  7. cupones de descuento carters online farmacia
    market descuento

    OpenMedShop http://openmedshop.com 10% DE DESCUENTO CÓDIGO DE CUPÓN: MEDS10

    cupon descuento mi farmacia 365 ¿Cuándo pagan utilidades en Liverpool?

    Reply
  8. order zithromax without prescription zithromax capsules australia buy generic zithromax no prescription
    https://azithromycin1st.com/ zithromax 1000 mg pills
    zithromax over the counter zithromax 1000 mg online zithromax 500 mg lowest price drugstore online

    Reply
  9. buy zithromax canada zithromax 250 how to get zithromax over the counter
    https://azithromycin1st.com/ zithromax capsules australia
    zithromax purchase online zithromax capsules australia zithromax z-pak price without insurance

    Reply
  10. anti fungal pills without prescription sildenafil without a doctor’s prescription canadian medications
    https://without-prescription-online.com/ prescription drugs without prior prescription
    pet meds without vet prescription canada buy prescription drugs pet meds without vet prescription

    Reply
  11. buy prescription drugs online cvs prescription prices without insurance ed meds online without doctor prescription
    https://without-prescription-online.online/ dog antibiotics without vet prescription
    ed drugs online from canada how to get prescription drugs without doctor carprofen without vet prescription

    Reply
  12. buy anti biotics without prescription non prescription erection pills canadian drugs online
    https://without-prescription-online.com/ legal to buy prescription drugs without prescription
    cat antibiotics without pet prescription prescription drugs canadian online pharmacy

    Reply
  13. cheap paxlovid paxlovid for sale where can i buy paxlovid
    https://myalliancehealthcare.online/ molnupiravir price
    buy molnupiravir online molnupiravir india where to get molnupiravir

    Reply
  14. molnupiravir for sale molnupiravir india where can i get molnupiravir
    https://apollobgshospitalsmysore.online/ paxlovid price
    purchase paxlovid paxlovid cost paxlovid for sale

    Reply
  15. molnupiravir india buy molnupiravir molnupiravir price
    https://myalliancehealthcare.online/ molnupiravir price
    cheap paxlovid paxlovid for sale purchase paxlovid

    Reply
  16. buy molnupiravir molnupiravir buy molnupiravir
    https://myalliancehealthcare.online/ molnupiravir india
    movfor molnupiravir india movfor

    Reply
  17. paxlovid price paxlovid paxlovid
    https://apollobgshospitalsmysore.online/ paxlovid cost
    paxlovid price buy paxlovid where can i buy paxlovid

    Reply
  18. stromectol tablets for humans: ivermectin – ivermectin lotion for lice
    http://stromectolst.com/# stromectol ivermectin buy
    ivermectin lice stromectol for sale stromectol ivermectin 3 mg

    Reply
  19. generic ivermectin cream: ivermectin – stromectol online
    https://stromectolst.com/# stromectol cost
    ivermectin price usa cheap stromectol price of ivermectin

    Reply
  20. https://stromectolis.com/# п»їorder stromectol online

    Reply
  21. clomid 2020 purchase clomid online – clomiphene online
    https://clomiphene1st.com/# clomid 100mg

    Reply
  22. generic doxycycline generic doxycycline – buy doxycycline without prescription
    https://doxycyline1st.com/# buy cheap doxycycline

    Reply
  23. doxycycline tetracycline doxycycline order online – doxycycline hyc
    https://doxycyline1st.com/# buy generic doxycycline

    Reply
  24. 100mg doxycycline buy doxycycline without prescription – doxylin
    https://doxycyline1st.com/# generic doxycycline

    Reply
  25. Can I buy a Mac with student discount? Can you redeem a Xbox
    gift card on PC?

    5% OFF COUPON CODE for GreatWebsOnline GREATWEBSONLINE.COM
    is: FH-3922

    Can you use store coupons on DoorDash? Why do senior citizens
    get a discount?

    Reply
  26. viagra side effects alcohol how long do the effects of viagra last can i take viagra twice a day

    Reply
  27. when to take viagra for best results what happens when you take viagra for the first time viagra vs birth control insurance coverage

    Reply
  28. ivermectin 1% cream generic stromectol online canada buy ivermectin cream

    Reply
  29. plaquenil usage does plaquenil cause weight gain plaquenil eye problems

    Reply
  30. buy plaquenil from canada plaquenil classification plaquenil vs chloroquine

    Reply
  31. stromectol 6 mg dosage price of stromectol order minocycline 100 mg

    Reply
  32. molnupiravir tablet price monulpiravir molnupiravir price

    Reply
  33. cialis 20mg coupon sex pills cialis cialis generic reviews

    Reply
  34. Wow, great article.Thanks Again. Awesome.

    Reply
  35. cialis for sale in toronto cialis cost nz buy cialis australia

    Reply
  36. Fantastic blog article.

    Reply
  37. Great, thanks for sharing this post.Thanks Again. Really Cool.

    Reply
  38. ivermectin scabies dose ivermectin for dogs with mange how long does ivermectin toxicity last in dogs

    Reply
  39. Thank you for your article. Really Great.

    Reply
  40. Thanks again for the post. Cool.

    Reply
  41. ivermectin for cats dewormer ivermectin coronavirus trials ivermectin for cutaneous larva migrans

    Reply
  42. wow, awesome blog.Really looking forward to read more. Really Great.

    Reply
  43. Looking forward to reading more. Great article post.Really looking forward to read more.

    Reply
  44. ivermectin dosage for lyme disease ivermectin skin rash pour-on ivermectin for cats

    Reply
  45. clomid pills price clomid online india clomid

    Reply
  46. I really liked your article.Really looking forward to read more. Keep writing.

    Reply
  47. clomid clomiphene clomid brand buying clomid on line

    Reply
  48. doxycycline india price 2985 doxycycline best price doxycycline uk

    Reply
  49. buying clomid online usa how to purchase clomid how can i get clomid prescription

    Reply
  50. Really appreciate you sharing this article post.Really looking forward to read more. Great.

    Reply
  51. cialis for enlarged prostate cialis milligrams generic cialis tadalafil 20mg

    Reply
  52. Really enjoyed this article post.Really thank you! Really Cool.

    Reply
  53. I value the post.Thanks Again. Awesome.

    Reply
  54. difference between cialis and viagra high blood pressure viagra viagra vs birth control insurance coverage
    https://cutt.ly/jDOLBRm# what was viagra originally made for
    do you need prescription for viagra woman in viagra commercial what exactly does viagra do?

    Reply
  55. I am so grateful for your post.Really thank you! Awesome.

    Reply
  56. can you take cialis and viagra together 365 pills viagra cialis professional cialis with dapoxetine sale

    Reply
  57. Thanks for sharing, this is a fantastic blog article.Really thank you! Will read on…

    Reply
  58. generic cialis tadalafil 20 mg from india how long does cialis take to work buy cialis pay pal

    Reply
  59. Thanks so much for the article post.Much thanks again. Cool.

    Reply
  60. is sildenafil 20 mg the same as viagra? what does sildenafil do

    Reply
  61. ivermectin 3mg tab stromectol 3mg tablets how much ivermectin to give a dog with mange

    Reply
  62. Thank you for your article post.Really thank you! Will read on…

    Reply
  63. where to get ivermectin ivermectin for demodex mites in humans can ivermectin paste be used topically

    Reply
  64. I really like and appreciate your article.Thanks Again.

    Reply
  65. how much is cialis without insurance buy cialis/canada buy cialis generic online

    Reply
  66. Awesome post.Really thank you! Great.

    Reply
  67. Awesome blog post.Thanks Again. Fantastic.

    Reply
  68. generiac cialis dapoxetine cialis where to buy generic cialis

    Reply
  69. Really informative article. Cool.

    Reply
  70. Im obliged for the blog article.Much thanks again. Keep writing.

    Reply
  71. Very good article.Really thank you! Keep writing.

    Reply
  72. I think this is a real great article post. Will read on…

    Reply
  73. Enjoyed every bit of your post.Really looking forward to read more. Really Cool.

    Reply
  74. prednisone 10 mg tablet cost over the counter prednisone medicine prednisone 5mg cost

    Reply
  75. I appreciate you sharing this post.Really thank you! Awesome.

    Reply
  76. I really like and appreciate your post.Really thank you! Want more.

    Reply
  77. Thanks for sharing, this is a fantastic post.Thanks Again. Want more.

    Reply
  78. Very neat article post. Want more.

    Reply
  79. prednisone cost us drug prices prednisone prednisone 40 mg rx

    Reply
  80. canadian pharmacy 1 internet online drugstore gen rx pharmacy

    Reply
  81. Thanks for sharing, this is a fantastic article. Much obliged.

    Reply
  82. Enjoyed every bit of your blog post. Awesome.

    Reply
  83. A big thank you for your post. Keep writing.

    Reply
  84. amoxicillin 500 mg tablets where can you buy amoxicillin over the counter medicine amoxicillin 500mg

    Reply
  85. I really enjoy the blog.Much thanks again. Cool.

    Reply
  86. Muchos Gracias for your article.Really looking forward to read more. Really Great.

    Reply
  87. I truly appreciate this article.Thanks Again. Will read on…

    Reply
  88. which is best viagra cialis or levitra levitra store

    Reply
  89. amoxicillin 500mg capsules price amoxicillin 500mg capsules amoxicillin 500 capsule

    Reply
  90. wow, awesome blog post.Thanks Again. Awesome.

    Reply
  91. Very good article post.Really thank you! Cool.

    Reply
  92. I cannot thank you enough for the blog.Much thanks again. Cool.

    Reply
  93. Wow, great article post.Thanks Again. Cool.

    Reply
  94. A round of applause for your blog article.Really thank you! Really Cool.

    Reply
  95. I really like and appreciate your article.Much thanks again. Much obliged.

    Reply
  96. buy generic ed pills online cheap medication online prices of viagra at walmart

    Reply
  97. Thanks for the article. Want more.

    Reply
  98. ivermectin toxicity in cats treatment ivermectin for demodex

    Reply
  99. is it legal to get prescription drugs from canada rx outreach pharmacy

    Reply
  100. Very informative blog post. Fantastic.

    Reply
  101. new erectile dysfunction treatment impotence pills ed treatment

    Reply
  102. Enjoyed every bit of your blog.Thanks Again. Awesome.

    Reply
  103. real cialis without a doctor’s prescription mens erections herbal remedies for ed

    Reply
  104. I really liked your blog.Much thanks again. Cool.

    Reply
  105. Thanks-a-mundo for the post.Really thank you! Really Great.

    Reply
  106. Major thankies for the article.Much thanks again. Great.

    Reply
  107. medicine for erectile ambien without a doctor’s prescription ed and diabetes

    Reply
  108. Appreciate you sharing, great blog.Really thank you! Really Cool.

    Reply
  109. trustworthy canadian pharmacies Zestoretic

    Reply
  110. ed pills that work erectyle dysfunction cheap drugs

    Reply
  111. A round of applause for your blog post.Really looking forward to read more. Cool.

    Reply
  112. aarp approved canadian online pharmacies cvs pharmacy careers

    Reply
  113. best online non prescription pharmacy pharmacy rx one coupons

    Reply
  114. Very good article post.Thanks Again.

    Reply
  115. dr syed haider ivermectin ivermectin for gapeworm ivermectin lotion 0.5

    Reply
  116. vitality ed pills ed doctors cheap pills online

    Reply
  117. Thanks so much for the blog.Really thank you! Want more.

    Reply
  118. I really liked your blog article.Really thank you! Really Great.

    Reply
  119. Thank you ever so for you blog post.Really looking forward to read more. Want more.

    Reply
  120. Muchos Gracias for your blog article.Thanks Again. Really Great.

    Reply
  121. Say, you got a nice blog article.Much thanks again. Keep writing.

    Reply
  122. Thanks for the blog. Keep writing.

    Reply
  123. cialis paypale generic cialis black cialis from china

    Reply
  124. I really like and appreciate your blog article.Much thanks again.

    Reply
  125. Im grateful for the article.Really thank you!

    Reply
  126. YourDoll株式会社 合理的なラブドールは、落胆と不安の共犯者になることができますか?

    Reply
  127. Really enjoyed this post.Really looking forward to read more.

    Reply
  128. Thanks-a-mundo for the blog.Really thank you! Cool.

    Reply
  129. Enjoyed every bit of your article.Much thanks again.

    Reply
  130. Major thanks for the post.Thanks Again. Cool.

    Reply
  131. Im grateful for the blog.Much thanks again. Really Cool.

    Reply
  132. ed devices treat ed ed meds online canada

    Reply
  133. Really appreciate you sharing this blog.Much thanks again. Much obliged.

    Reply
  134. Thanks again for the post.Thanks Again. Great.

    Reply
  135. best drugstore foundation for dry skin viagra canadian pharmacy legit

    Reply
  136. I cannot thank you enough for the post. Really Cool.

    Reply
  137. Major thanks for the blog.Really thank you! Really Great.

    Reply
  138. I think this is a real great blog. Really Great.

    Reply
  139. how long does 5mg cialis last best price for daily cialis cialis daily elily

    Reply
  140. This is one awesome blog.Really thank you! Much obliged.

    Reply
  141. Thanks-a-mundo for the blog article. Will read on…

    Reply
  142. Hey, thanks for the blog post. Will read on…

    Reply
  143. online pharmacy cialis cheap cialis 20 mg best price how do you take cialis

    Reply
  144. Enjoyed every bit of your article post. Keep writing.

    Reply
  145. generic cialis for daily use cheapest cialis usa brand cialis for sale

    Reply
  146. Major thanks for the blog post. Awesome.

    Reply
  147. stromectol for pinworms stromectol generico stromectol coronavirus

    Reply
  148. I really like and appreciate your article.Thanks Again.

    Reply
  149. Very good article post.Really thank you! Much obliged.

    Reply
  150. buy canadian drugs legal to buy prescription drugs without prescription canadian medications

    Reply
  151. A round of applause for your blog post.Thanks Again. Awesome.

    Reply