Great new it was simple and should have seen this
<cfoutput>
<cfloop list="#location#" index="i">
<a href="/index.cfm?objectId=#application.navid[i]#">#i#</a><br>
</cfloop>
</cfoutput>
worked great
On 3/12/07, Jake Churchill <[EMAIL PROTECTED]> wrote:
>
> First of all, make sure the Navigation node has a nav alias set. This is
> what you are referencing using 'i'. Try referencing it using array syntax.
> #application.navid['i']#
>
> M Wheeler wrote:
>
> Hi
>
> I have a query of locations. I have set up navigation and html items in
> the site named the same as these items in the query. What I want to do is
> simply loop through the list and output a list of the locations with url
> links to the relevant html page from an include. Thought this would work:
>
> <cfoutput>
> <cfset location = valueList(qsites.SITENAME,",")>
> <cfloop list="#location#" index="i">
> <a href="/index.cfm?objectId=#application.navid.i#">#i#</a><br>
> </cfloop>
> </cfoutput>
>
> keep getting error:
>
> Element NAVID.I is undefined in APPLICATION.
> The error occurred in
> E:\Inetpub\farcry\intranet\includedObj\_locationProfileDisplay.cfm: line 16
>
> am not entirely sure what I am doing wrong, any help much appreciated.
>
> Cheers
> Mark
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---