On Dec 10, 6:26 pm, Selfprodigy <[EMAIL PROTECTED]> wrote:
> Is there any easy way to put a rel="nofollow" on subcategories only?

Navigation information is retrieved as follows:
FarCry stores hierarchy models like navigation in the database
following the Joe Celko nested tree model.  The ./packages/farcry/
tree.cfc component pulls branch information using the getDescendants()
function.  The result is a query object that includes all the
information you need to build a nested set elements like UL/LI
elements in HTML.  ./tags/webskin/genericnav.cfm builds a nested set
of UL/LI's without having to understand any of this.  Anchor tags are
built from the nested tree model data using ./webskin/buildlink.cfm.
This is the result you see in the sample project (aka Mollio).

We build nested UL/LI's only because this is considered current best
practice for navigation in the web standards, CSS design fraternity.
If you wanted to build menus from Javascript or in tables, or
whatever, that is certainly possible.

Ok. So you have several options.  How easy they are depends on how
much experience you have with either FarCry, ColdFusion, HTML and/or
Javascript.

// Uber Skills
You can take the query from a tree.getDescendants() call and build
whatever you like as navigation from this raw data.  You can see an
example of this call at the top of ./webskin/genericnav.cfm

// CF/HTML
You can copy ./webskin/genericnav.cfm and hack around with this to
insert the rel's at the point it generates 2nd level LI's.

// Javascript skills
You can process the DOM in the browser using JQuery (or equivalent)
and add RELs to the nested LI/A elements.

There are a huge number of options in genericnav.cfm but unfortunately
I don't think adding RELs to 2nd tier elements is one of them at this
time :(

Hopefully that helps,

geoff
http://www.daemon.com.au/
--~--~---------~--~----~------------~-------~--~----~
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