Re: Re: Farcry 6.08 with FarcryCMS plugin
Jeff Coughlin <[email protected]> Mon, 27 Dec 2010 22:24:41 -0500
| Newsgroups | gmane.comp.cms.farcry.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-259--480615021
Content-Type: text/plain; charset=ISO-8859-1
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 Developer
http://jeffcoughlin.com
On Dec 27, 2010, at 3:06 PM, chris wrote:
> That would be great if a subnavigation on the left is not needed, but
> in my case i have one.
> Speaking about the navigation. in some cases the submenu doesnt show
> because there are no children.
> only in my case i use a div around the subnavigation. But i dont want
> the div in the lay-out if there are no children. what is the best way
> to hide the div. For de subnavigation i use:
>
> <div id="leftmenuNavigation">
> <skin:genericNav foo=bar>
> </div>
>
> I thought i could make an includes directory in de webskin folder of
> my project and than put a file in it with the code
> <cfsavecontent variable="leftMenu">
> <cfoutput>
> <skin:genericNav foo=bar>
> </cfoutput>
> </cfsavecontent>
>
> And then in the displayPageStandard:
>
> <include template="/farcry/projects/[applicationname]/webskins/
> includes/include_leftmenu.cfm">
> <cfif len(leftMenu) gt 0>
> <div id="leftmenuNavigation">
> #leftMenu#
> </div>
> </cfif>
> But that doesnt give any output and isnt very clean either. is there a
> better way?
>
> Thank you so much for the support ones again.
>
> Chris van der Poel (The Netherlands)
>
>
>
> On 27 dec, 17:14, Sean Coyne <[email protected]> wrote:
>> In addition to AJ's response, ideally in your displayPageStandard webskins
>> you will only have the design code relative the target content types. The
>> generic design aspects should be in displayHeaderStandard and
>> displayFooterStandard webskins that can be shared by all content types.
>
> --
> You received this message because you are subscribed to the Google Groups "farcry-user" group.
> To post to this group, send email to farcry-user-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To unsubscribe from this group, send email to farcry-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To unsubscribe from this group, send email to farcry-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en.
--Apple-Mail-259--480615021
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1
<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:=
space; -webkit-line-break: after-white-space; "><div>Chris,</div><div><br>=
</div>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=
.<div><br></div><div>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 differen=
t objectId instead of the current page navId)</div><div><div><cfscript&g=
t;</div><div> aNavfilter =3D ["status IN (#listQualify(request.m=
ode.lValidstatus, "'")#)"];</div><div> qSubNav =3D application.f=
actory.oTree.getDescendants(objectId=3Drequest.navId, depth=3D1, aFilter=3D=
aNavFilter, bHideEmptyNodes=3Dtrue);</div><div></cfscript></div><div>=
<br></div><div><cfif qSubNav.recordCount gt 0></div><div> =
<div id=3D"leftmenuNavigation"></div><div> <skin=
:genericNav foo=3Dbar /></div><div> </div></div><div>&l=
t;/cfif></div></div><div><br><div>
<span class=3D"Apple-style-span" style=3D"font-size: 12px; "><div style=3D"=
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-=
white-space; "><span class=3D"Apple-style-span" style=3D"border-collapse: s=
eparate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font=
-style: normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: =
none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-hor=
izontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-de=
corations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-str=
oke-width: 0px; "><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; "><span class=3D"Apple-style-s=
pan" style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-=
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; te=
xt-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-=
spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertic=
al-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-siz=
e-adjust: auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space=
; "><div><div>--</div><div>Jeff Coughlin</div><div>Web Application Develope=
r</div><div><a href=3D"http://jeffcoughlin.com">http://jeffcoughlin.com</a>=
</div></div></div></span></div></span></div></span>
</div>
<br><div><div>On Dec 27, 2010, at 3:06 PM, chris wrote:</div><br class=3D"A=
pple-interchange-newline"><blockquote type=3D"cite"><div>That would be grea=
t if a subnavigation on the left is not needed, but<br>in my case i have on=
e.<br>Speaking about the navigation. in some cases the submenu doesnt show<=
br>because there are no children.<br>only in my case i use a div around the=
subnavigation. But i dont want<br>the div in the lay-out if there are no c=
hildren. what is the best way<br>to hide the div. For de subnavigation i us=
e:<br><br><div id=3D"leftmenuNavigation"><br>  =
; <skin:genericNav foo=3Dbar><br></div><br><br>I thought i=
could make an includes directory in de webskin folder of<br>my project and=
than put a file in it with the code<br><cfsavecontent variable=3D"leftM=
enu"><br> <cfoutput><br>  =
; <skin:genericNav foo=3Dbar><br> </cfoutput><br><=
;/cfsavecontent><br><br>And then in the displayPageStandard:<br><br><=
include template=3D"/farcry/projects/[applicationname]/webskins/<br>include=
s/include_leftmenu.cfm"><br><cfif len(leftMenu) gt 0><br> &l=
t;div id=3D"leftmenuNavigation"><br> #left=
Menu#<br> </div><br></cfif><br>But that doesnt give any output =
and isnt very clean either. is there a<br>better way?<br><br>Thank you so m=
uch for the support ones again.<br><br>Chris van der Poel (The Netherlands)=
<br><br><br><br>On 27 dec, 17:14, Sean Coyne <[email protected]> w=
rote:<br><blockquote type=3D"cite">In addition to AJ's response, ideally in=
your displayPageStandard webskins<br></blockquote><blockquote type=3D"cite=
">you will only have the design code relative the target content types. &nb=
sp;The<br></blockquote><blockquote type=3D"cite">generic design aspects sho=
uld be in displayHeaderStandard and<br></blockquote><blockquote type=3D"cit=
e">displayFooterStandard webskins that can be shared by all content types.<=
br></blockquote><br>-- <br>You received this message because you are subscr=
ibed to the Google Groups "farcry-user" group.<br>To post to this group, se=
nd email to <a href=3D"mailto:farcry-user-/[email protected]">farcry-user@goo=
glegroups.com</a>.<br>To unsubscribe from this group, send email to <a href=
=3D"mailto:farcry-user+unsubscribe-/[email protected]">farcry-user+unsubscrib=
[email protected]</a>.<br>For more options, visit this group at <a href=3D=
"http://groups.google.com/group/farcry-user?hl=3Den">http://groups.google.c=
om/group/farcry-user?hl=3Den</a>.<br><br></div></blockquote></div><br></div=
></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "=
farcry-user" group.<br />
To post to this group, send email to farcry-user-/JYPxA39Uh5TLH3MbocFF+G/[email protected]<br />
To unsubscribe from this group, send email to farcry-user+unsubscribe@googl=
egroups.com.<br />
For more options, visit this group at http://groups.google.com/group/farcry=
-user?hl=3Den.<br />
--Apple-Mail-259--480615021--