I have done something similar, the following codse is in my template:
<cfinvoke component="#application.packagepath#.farcry.tree"
method="getChildren"
returnVariable="anyCampaigns">
<cfinvokeArgument name="objectid" value="#request.navid#">
<cfinvokeArgument name="dsn" value="#application.dsn#">
</cfinvoke>
<cfloop query="anyCampaigns">
<cfscript>
t = createObject("component",
"#application.packagepath#.types.dmNavigation");
qOverview = t.getData(objectid=anyCampaigns.objectid);
for (i = 1; i lte ArrayLen(qOverview.aObjectIds); i = i
+ 1)
{
if (t.findType(qOverview.aObjectIds[i])
eq "dmHTML")
{
thePage =
createObject("component",
"#application.packagepath#.types.dmHTML");
thePageDetails =
thePage.getData(qOverview.aObjectIds[i]);
writeoutput("<h2>" &
anyCampaigns.ObjectName & "</h2><div
class=""box""><p>" & thePageDetails.teaser & "</p><p
class=""paragraph_align_right""> " & "Read more... </p></div><div
class=""hr""><hr /></div>");
}
}
</cfscript>
</cfloop>
Hope this is of some use.
Cheers,
Duncan
--
View this message in context:
http://www.nabble.com/child-links-from-a-specified-parent--t1384616c621.html#a3801369
Sent from the FarCry - Dev forum at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---