Working example of how to use the navigation as sitemap:

The navigation code:

<!--- sitemap navigation --->

<skin:genericNav navID="E689D721-B6C9-605B-DE1D813E4CDA3339"
                        depth="2"
                        id="sitemap"
                        bActive="true"
                        bIncludeHome="true">

Here you see a static id, that is the id of the homepage, you can
check it by going to the admin site tab and click home, or you can
use:

<cfdump var="#request.navid#">
<cfabort>

above the navigation code you want to use.

I used depth="2" as i only need that depth, adjust when needed.

Further you see that the id is set to sitemap, that points to this
CSS:

/* ============================= sitemap ====================== */

#sitemap li.active { font-weight:bold; decoration:none}

#sitemap li.active li {font-weight:bold}

Of course you can do whatever you want with the CSS, i just used it
like this.

Kept bActive="true" and bIncludeHome="true" as also in the sitemap i
want to show visitors where they are and show the entire navigation
hierarchy inclusive the home item.

Many thanks to all that helped!

Cheers

On Dec 2, 10:19 pm, Marco van den Oever <[EMAIL PROTECTED]>
wrote:
> Mmm because of trying all kinds of parameters with the navigation that
> needed to be a sitemap, it resulted in:
>
> <!--- sitemap navigation --->
> <skin:genericNav navID="#request.navid#"
>                         functionMethod="getBloodline"
>                         functionArgs="jointable=""dmNavigation"",
> status=""#request.mode.lvalidstatus#"""
>                         id="sitemap"
>                         depth="2"
>                         startlevel="2"
>                         bIncludeHome="true"
>                         bFirst="true"
>                         bActive="true">
>
> Now i used the same navigation setup as is used for the upper, of
> course now with the sitemap id instead of the nav id:
>
> <!--- sitemap navigation --->
> <skin:genericNav navID="#request.navid#"
>                         id="sitemap"
>                         depth="2"
>                         bActive="true"
>                         bIncludeHome="true">
>
> And now when i change (tried that before without result):
>
> #sitemap li ul {width:15.8em;margin-top:3px;position: absolute;font-
> weight:normal;left: -999em}
>
> to
>
> #sitemap li ul {width:15.8em;margin-top:3px;position: absolute;font-
> weight:normal}
>
> i see al nav items expanded, still have to do some more work to set it
> all as needed but this is what i was looking for.
>
> So somehow the difference in the navigation code made it now possible
> to see them expanded by setting that CSS.
>
> Thanks, when I'm done will post the CSS for the next one that should
> need it.
>
> On Dec 2, 9:18 pm, Sean Coyne <[EMAIL PROTECTED]> wrote:
>
> > well you cant really set them explicitly to nothing.  CSS doesnt
> > really have a "nothing" setting.  you have to overwrite the values.
> > if you are using mollio, i wouldn't directly edit the mollio CSS
> > files, I would create a custom CSS file that is loaded after the
> > Mollio CSS files that overrides anything you don't want.
>
> > you may have to use an !important directive to ensure it uses your
> > changes, but they are called Cascading Style Sheets for a reason.  As
> > long as your CSS comes after the Mollio CSS the browser should use
> > them.
>
> > Another option is to just give it a different ID or class.  Then the
> > Mollio CSS files will have no effect.
>
> > On Dec 2, 12:57 pm, Marco van den Oever <[EMAIL PROTECTED]>
> > wrote:
>
> > > Ahhhh yes :) Now i see, i am using Mollio, already went and tried to
> > > change the CSS but i just need no CSS, or better said, need to set all
> > > the 'sitemap' css explicitly to nothing, am i right?
>
> > > Thanks for your patience.
>
> > > On Dec 2, 2:13 pm, Sean Coyne <[EMAIL PROTECTED]> wrote:
>
> > > > ok.  the whole roll over part is either JavaScript or CSS. Disable CSS
> > > > and Javascript and you will see the entire list that genericNav
> > > > creates.  You can make it look however you like.
>
> > > > Are you using Mollio? or a custom webskin?
>
> > > > On Dec 1, 4:18 pm, Marco van den Oever <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Sean, this is what i want to do:
>
> > > > > "For my nav menu at the top i already use depth="2" and yes that gives
> > > > > me a depth of 2 when i roll over the nav item that has 2 levels.
>
> > > > > But i want all nav items as default being expanded, so without roll
> > > > > over expand as far they can."
>
> > > > > Ok Tomek will check that.
>
> > > > > Thanks both for your time!
>
> > > > > On Dec 1, 8:23 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
>
> > > > > > come to think of it, somewhere (i can't find it currently) there is 
> > > > > > an
> > > > > > dmInclude of a sitemap type. Perhaps you should search for that 
> > > > > > somewhere
> > > > > > (it's in one of the tutroirals, perhaps for FC4).
>
> > > > > > On Mon, Dec 1, 2008 at 2:05 PM, Sean Coyne <[EMAIL PROTECTED]> 
> > > > > > wrote:
>
> > > > > > > what is the code you are using? i'm having a hard time following 
> > > > > > > what
> > > > > > > you are doing.  The genericNav.cfm template outputs an unordered 
> > > > > > > list
> > > > > > > (UL) and items (LI).  The appearance is changed w/ CSS.
>
> > > > > > > You can change the number of levels displayed with the depth
> > > > > > > attribute.  It needs only one start point which is normally the 
> > > > > > > Home
> > > > > > > node.
>
> > > > > > > Sean
>
> > > > > > > On Dec 1, 11:04 am, Marco van den Oever <[EMAIL PROTECTED]>
> > > > > > > wrote:
> > > > > > > > Mmmm i think the problem is that only through triggering the
> > > > > > > > genericNav function (by clicking and thereby generating a 
> > > > > > > > objectid)
> > > > > > > > certain combinations of li and ul are generated, so i don't 
> > > > > > > > think it's
> > > > > > > > possible just with CSS.
>
> > > > > > > > I have to find a way to pass on all objectids that are attached 
> > > > > > > > in the
> > > > > > > > nav, then it works, so i still need to customize the 
> > > > > > > > genericNav... I
> > > > > > > > think...
>
> > > > > > > > On Dec 1, 3:44 pm, Marco van den Oever <[EMAIL PROTECTED]>
> > > > > > > > wrote:
>
> > > > > > > > > Ahh yes of course :) Thanks, will go and try.
>
> > > > > > > > > On Dec 1, 3:04 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > Marco, the reason those aren't expanded to begin with is 
> > > > > > > > > > css. I'm
> > > > > > > pretty
> > > > > > > > > > sure that if you look at the plain html you will see that 
> > > > > > > > > > it is a
> > > > > > > series of
> > > > > > > > > > <ul> and <li><ul> etc. Hence, perhaps what you need to do 
> > > > > > > > > > is figure
> > > > > > > out how
> > > > > > > > > > to get the classes for the css to make sense.
>
> > > > > > > > > > On Sun, Nov 30, 2008 at 8:06 PM, Marco van den Oever <
>
> > > > > > > > > > [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > Ok thanks, will check that out, hope luck is enough...
>
> > > > > > > > > > > On Dec 1, 1:47 am, "Blair McKenzie" <[EMAIL PROTECTED]> 
> > > > > > > > > > > wrote:
> > > > > > > > > > > > Have a look at the functions in tree.cfc in core 
> > > > > > > > > > > > (probably in the
> > > > > > > farcry
> > > > > > > > > > > > package). There are various functions in there for 
> > > > > > > > > > > > retrieving
> > > > > > > items in
> > > > > > > > > > > the
> > > > > > > > > > > > tree, and you can put attributes on the genericNav tag 
> > > > > > > > > > > > to specify
> > > > > > > which
> > > > > > > > > > > to
> > > > > > > > > > > > use and with what parameters. Unfortunately that's as 
> > > > > > > > > > > > much as I
> > > > > > > know
> > > > > > > > > > > about
> > > > > > > > > > > > it. Good luck :)
>
> > > > > > > > > > > > Blair
>
> > > > > > > > > > > > On Mon, Dec 1, 2008 at 11:35 AM, Marco van den Oever <
>
> > > > > > > > > > > > [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > > > For my nav menu at the top i already use depth="2" 
> > > > > > > > > > > > > and yes that
> > > > > > > gives
> > > > > > > > > > > > > me a depth of 2 when i roll over the nav item that 
> > > > > > > > > > > > > has 2
> > > > > > > levels.
>
> > > > > > > > > > > > > But i want all nav items as default being expanded, 
> > > > > > > > > > > > > so without
> > > > > > > roll
> > > > > > > > > > > > > over expand as far they can.
>
> > > > > > > > > > > > > On Dec 1, 1:21 am, "Blair McKenzie" <[EMAIL 
> > > > > > > > > > > > > PROTECTED]> wrote:
> > > > > > > > > > > > > > Sean is right. Increasing the depth attribute 
> > > > > > > > > > > > > > should give you
> > > > > > > the
> > > > > > > > > > > result
> > > > > > > > > > > > > you
> > > > > > > > > > > > > > need.
>
> > > > > > > > > > > > > > Blair
>
> > > > > > > > > > > > > > On Sat, Nov 29, 2008 at 4:30 AM, Marco van den 
> > > > > > > > > > > > > > Oever <
>
> > > > > > > > > > > > > > [EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > > > > > "Both use genericNav, but for the one right i 
> > > > > > > > > > > > > > > want it to be
> > > > > > > > > > > expanded
> > > > > > > > > > > > > > > as
> > > > > > > > > > > > > > > default, and i mean all levels."
>
> > > > > > > > > > > > > > > Here i mean all navigation levels of all items to 
> > > > > > > > > > > > > > > be
> > > > > > > expanded, not
> > > > > > > > > > > > > > > just when you click on a nav item, but as default 
> > > > > > > > > > > > > > > show all
> > > > > > > expanded
> > > > > > > > > > > > > > > nav items so it becomes a sort of expanded 
> > > > > > > > > > > > > > > sitemap.
>
> > > > > > > > > > > > > > > On Nov 28, 1:43 pm, Sean Coyne <[EMAIL PROTECTED]>
> > > > > > > wrote:
> > > > > > > > > > > > > > > > its the depth attribute.
>
> > > > > > > > > > > > > > > > On Nov 26, 4:31 pm, Marco van den Oever <
> > > > > > > > > > > [EMAIL PROTECTED]>
> > > > > > > > > > > > > > > > wrote:
>
> > > > > > > > > > > > > > > > > I have a menu by genericNav at top, also a 
> > > > > > > > > > > > > > > > > menu at the
> > > > > > > right
> > > > > > > > > > > side
> > > > > > > > > > > > > > > > > without using any css for it.
> > > > > > > > > > > > > > > > > Both use genericNav, but for the one right i 
> > > > > > > > > > > > > > > > > want it to
> > > > > > > be
> > > > > > > > > > > expanded
> > > > > > > > > > > > > as
> > > > > > > > > > > > > > > > > default, and i mean all levels.
>
> > > > > > > > > > > > > > > > > That way i can use it as a side map, i 
> > > > > > > > > > > > > > > > > already checked
> > > > > > > the
> > > > > > > > > > > > > > > > > genericNav.cfm for attributes to set etc, 
> > > > > > > > > > > > > > > > > can't find it
> > > > > > > yet, so
> > > > > > > > > > > if
> > > > > > > > > > > > > you
> > > > > > > > > > > > > > > > > have a tip that will be greatly appreciated!
>
> > > > > > > > > > > > > > > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to