Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
Darn it
version 7,0,2,142559
Copy link to clipboard
Copied
Too bad. Ask the host about tags for zipping and image functions. I am sure you are not the first. So they may already have some tags installed.
Copy link to clipboard
Copied
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