• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Setting up custom tags using Cfmodule?

Enthusiast ,
Jul 08, 2009 Jul 08, 2009

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

TOPICS
Advanced techniques

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 08, 2009 Jul 08, 2009

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 08, 2009 Jul 08, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 08, 2009 Jul 08, 2009

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 08, 2009 Jul 08, 2009

Copy link to clipboard

Copied

Darn it

version 7,0,2,142559

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 08, 2009 Jul 08, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 08, 2009 Jul 08, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation