Hi Jeff,
Thanks for the suggestion, but i thought of different approach, that
seems more efficient because you don't have to call the tree function
(Query) twice, and it works now because of the webskin tag import in
the cfsavecontent variable.
<!--- The file include_leftMenu.cfm --->
<cfsavecontent variable="leftMenuOutput">
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
<cfoutput>
<skin:genericNav navID="#request.navid#"
functionMethod="getBloodline"
functionArgs="jointable=""dmNavigation"",
status=""#request.mode.lvalidstatus#""" id="nav-secondary"
startlevel="3" bActive="true">
</cfoutput>
</cfsavecontent>
<!--- ---->
<!--- The file DisplayPageStandard ---->
<cfinclude template="farcry/projects/#application.applicationname#/
webskin/includes/include_leftMenu.cfm">
<cfif len(leftMenuOutput) gt 0>
<div id="leftNavContainer">
#LeftmenuOutput#
</div>
<cfelse>
<!--- different Layout --->
</cfif>
On Dec 28, 4:24 am, Jeff Coughlin <
j...@jeffcoughlin.com> wrote:
> Chris,
>
> I'm not sure it's ideal, but you could do a getDescendants() and see if it returns any records before deciding to output the div for your subnav .
>
> Example: (note: If you're trying to build the subnav from a specific level, keep that in mind in case you need to use a different objectId instead of the current page navId)
> <cfscript>
> aNavfilter = ["status IN (#listQualify(request.mode.lValidstatus, "'")#)"];
> qSubNav = application.factory.oTree.getDescendants(objectId=request.navId, depth=1, aFilter=aNavFilter, bHideEmptyNodes=true);
> </cfscript>
>
> <cfif qSubNav.recordCount gt 0>
> <div id="leftmenuNavigation">
> <skin:genericNav foo=bar />
> </div>
> </cfif>
>
> --
> Jeff Coughlin
> Web Application Developerhttp://
jeffcoughlin.com
> > For more options, visit this group athttp://
groups.google.com/group/farcry-user?hl=en.- Hide quoted text -