In case anyone is interested, the following is a snippet of code Oanh (a
developer at Four Eyes) came up with.  Basically it shows the children of
children in a the child links teaser.  We have found it to be handy with a
University site we are building where the navigation is quite deep.  Perhaps
others will find it useful.



/webskin/dmHTML/displayTeaser.cfm


<cfsetting enablecfoutputonly="yes">
<!--- @@displayname: Horizontal Blurb --->
<!--- @@author: ole --->
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
<!--- get nav parent --->
<cfscript>
 o = createObject("component",
"#application.packagepath#.types.dmNavigation");
 qParent = o.getParent(objectid=stobj.objectid);
</cfscript>
<!--- child links --->
<skin:sitemap bDisplay="false" startPoint="#qParent.objectid#"
r_navQuery="qChildren">
<cfset rowCounter = (Round(qChildren.recordcount/2) + 1)>
<cfoutput>
<table cellspacing="0" cellpadding="0" width="100%">
 <!--- begin child content loop --->
 <tr>
  <td valign="top" class="titleBackgroundChild"
colspan="2"><strong></cfoutput>
  <skin:buildLink class="titleBackgroundChild"
objectid="#qParent.objectid#"><cfoutput>&##187;
#stObj.Title#</cfoutput></skin:buildLink>
  <cfoutput></strong></td>
 </tr></cfoutput>
 <cfif qchildren.recordcount>
 <cfoutput>
 <tr>
  <td colspan="2" class="teaserBackgroundChild">#stObj.Teaser#</td>
 </tr>
 </cfoutput>
 <cfelse>
 <cfoutput>
 <tr>
  <td colspan="2" class="teaserBackground">#stObj.Teaser#</td>
 </tr>
 </cfoutput>
 </cfif>
 <cfoutput>
 <tr>
  <td valign="top" class="teaserBackground">
  <ul class="child">
  <cfloop query="qChildren">
  <cfif qChildren.recordcount gt 3 AND qChildren.CurrentRow eq
rowCounter></ul></td><td class="teaserBackground" valign="top"><ul
class="child"></cfif>
   <li class="child"><span class="bullet">&##149;</span><skin:buildLink
objectid="#objectid#" class="child">#objectname#</skin:buildLink></li>
  </cfloop>
  </ul>
  </td>
 </tr>
 <tr>
  <td><br>&nbsp;<br></td>
 </tr>
</table>
</cfoutput>
<cfsetting enablecfoutputonly="no">





-- 
Regards,
Michael J. Sammut
____________________________________________________________________
F O U R  E Y E S  P R O D U C T I O N S

think | plan | create :: web site design & development  :: NYC

E. [EMAIL PROTECTED]  |  T: 718.254.9557 ext. 101  |  F: 718.254.0399

W. http://www.foureyes.com



---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to