I have extended the type dmNavigation.cfc so I have a new string
attribute for the Navigation nodes in my site.... I want to be able to
assign an HTML color to each navigation node item... so I've populated
my new string field with HTML colors... with the anticipation that I
can pass this onto the tree menu building process.

I am not sure about the best place to extend the core menu / tree
functionality. I have traced code execution (I am learning as I go
here) back from my template (dmHeader.cfm) to the tree.cfc component.

The tree.cfc component seems to be dealing with the nested_tree_objects
table... which is not really what I want to deal with... since I am
interested in my new field which lives in the dmNavigation table. The
tree.cfc structure is meant for categories as well as dmNavigation
types (and more, no doubt) so I can understand why.

I was hoping that I could acheive my goal by editing the
_genericNav.cfm file... the one that actually generates the <ul><li...
tree.  I can get access to the type name... qNav.typename[i]   and was
thinking of using that to do a query on the DB to get hold of the HTML
color. But:

 a) This seems terribly inefficient since each nav item would mean a
hit to the database just to get the HTML color

 b) I can't see how to do it in the existing code that is written
inside <CFSCRIPT tags (for speed??)... since I would need to do a
<CFQUERY within the <CFSCRIPT which is not possible. I'd have to recode
the whole lot in <CF tags right?

Any suggestions for the 'proper' way to handle this?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to