Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF Custom Tags - How to install them ???

Status
Not open for further replies.

josel

Programmer
Joined
Oct 16, 2001
Messages
716
Location
US
Hello friends,

Today I decided to browse around and came across this


It appears as a nice gadget, so I downloaded it to play with. Now I am facing the dilemma of not know how to use it :( The compressed file did not have a readme. I guess that you need to know what to do with it before you get it!

Can someone please check this out and give me an idea. I opened it using my CF Studio 4.5, added the Server Mapping to directory where I unpacked files but cannot resolve included template.

Thank you in advance, please excuse my ignorance!

josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
Look for a folder called CFUSION on your hard drive. Open it and you will se another folder called Custom Tags. Copy your custom tag into that folder.

Now, here's an example of how to call a custom tag.
Code:
<CFLOOP CONDITION=&quot;SwapCount GT 0&quot;>
	<CF_TwoDimShellSort A2=&quot;#A2#&quot; SortCol=#Status# SortOrder=#SortOrder#>
</CFLOOP>
There is a file in my Custom Tag folder called &quot;TwoDimShellSort&quot;, but when you use it in a template, you preface the file name with &quot;CF_&quot; In this case, I am passing three variables into my tag, A2, SortCol, and SortOrder. Inside the tag, they are referred to as Attributes.A2, Attributes.SortCol, and Attributes.SortOrder. When you want the calling template to have access to a variable generated inside the tag, in your template, refer to it as Caller.X, but inside the tag, you would simply refer to the variable as X.

Anyway, this is my understanding of it. I didn't really understand it until I wrote my own custom tag. I'm sure others will correct any mistakes I've made in this post.

BTW, someone once said, &quot;We're all ignorant, just on different subjects.&quot; You've come to the right forum to ask qustions. The only stupid question is the one you did not ask. Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top