Try something like this:

<cfloop from="1" to = "#listlen(thelist)#" index="i">
        <cfoutput>
                <a
href="http://www.domain.com/search_children.cfm?parent=#listgetat(theloop,i)
#">#listgetat(theloop,i)#</a>
        </cfouput>
</cfloop>

Assuming your list is in a variable called thelist (e.g. thelist =
"Corporate Life,Amenities,Cafeteria")

-----Original Message-----
From: Loryn C Williams [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 6:47 AM
To: CF-Talk
Subject: List Functions


All,
I think I have a fairly simple problem, but I can't for the life of me
figure out how to get this done.

I have a custom tag that traverses up a tree and produces a list (good)
How do I make each list item (as it is output) contain a url reference
and values to call another
cf custom tag?

For example my list produces

Corporate Life - Amenities - Cafeteria

I would like it to say
<a href="http://www.domain.com/search_children.cfm?parent=Corporate
Life>Corporate Life </a> etc..

I have not had any luck at all with this and any help would be GREATLY
appreciated.
Thank You in advance
Loryn Williams
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to