Skip to main content
Inspiring
July 8, 2009
Question

Setting up custom tags using Cfmodule?

  • July 8, 2009
  • 2 replies
  • 1513 views

I have just set a site up on Godaddy, on a shared CF server, so I don't have access to the administrator to set up a custom tag

I believe it's possibly to set up a tag by uploading into my web root and then referring to it using CFMODULE

Can anybody offer any help on this as I can't get it working.

the issue is I want to set up DLL custom tags, such as CFX_ZIP (CFX_ZIP), and CFX_GIFSIZE (gifsize.dll)

Thanks

Mark

This topic has been closed for replies.

2 replies

Inspiring
July 8, 2009

such as CFX_ZIP (CFX_ZIP), and CFX_GIFSIZE (gifsize.dll)

If they are running ColdFusion 8, you can use cfzip and image functions instead.  Otherwise, ask the host.  Either if they can install the tags or if they have something similar already installed.

Will You Install (xxx) CFX Tag for Me?

http://help.godaddy.com/article/1645

Inspiring
July 8, 2009

I believe it's possibly to set up a tag by uploading into my web root and then referring to it using CFMODULE

No.  I believe CFMODULE is only for custom CFML tags:

http://livedocs.adobe.com/coldfusion/8/htmldocs/reuseCode_1.html

CFX tags must be registered in the CF Administrator.

http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_c-d_13.html

It is possible to use dll's dynamically from createObject() in ColdFusion 8.  But a) that is not generally how you access custom tags an b) that requires access to createObject, which is often disabled on shared servers.

ACS LLCAuthor
Inspiring
July 8, 2009

I guess I could try some createobject code to see if it works on godaddy

Would you be able to post some example code?

Thanks

Mark

Inspiring
July 8, 2009

I guess I could try some createobject code to see if it works on godaddy

Would you be able to post some example code?

Sure. Here is a simple test. If by some miracle that actually runs without error, you can find a .NET example in the documentation

<cfset str = createObject("java", "java.lang.String").init("Test this")>

<cfoutput>#str#</cfoutput>

Also, find out what version of CF you are using. If it is CF8+ you are in business.

<cfoutput>

version #server.coldFUsion.ProductVersion#

</cfoutput>