Hey Tim,
You have hit the nail on the head, when you talk about the
slowing the site down any more than the cable company already is ;-)
Yes, cfmodule calls do come with a small performance hit (a few milliseconds),
but unless you are doing deeply recursive crunching, it's not going to be
significant compared to network speed.
Really, now that FB3 has come along and made recursion
both efficient and robust, it looks like this much-trumpeted Fusebox feature
is really coming into its own. We have Hals' MVC implementation,
Patrick's CF_call tag, my Pjortal, and who knows what John has up his sleeve
to wow the Chenouks?
Remember Lee's Optimisation Rule Number One:
First do it the nice way, then (and only then) optimise as necessary.
All else is waste!
See ya,
LeeBB
ps., you really are a very sweet man,
Tim.
----- Original Message -----
Lee,
Man, I don't know what to say, sometimes you amaze me
man. That's a great method for doing menus. I guess my only
question is, what would the extra time cost be like? I mean yes I
imagine that would depend on the size and complexity of the moduled
file.
I ask only because I haven't used module for anything
yet. I am going to be using it on my home page here shortly to list
guestbook and journal entries, and would hate to slow down the site anymore
than the cable company is now :)
Hi Ron,
On simple way is to define a "menu" fuseaction for
every circuit. Then your home layout uses CFMODULE to invoke
the appropriate menu:
<cfmodule template="#self#"
fuseaction="#fusebox.targetCircuit#.menu">
On the other hand, if you want a default menu that
individual target circuits can override, then you can define
#menuaction# and give it a default of
"main.menu", but child circuits' fbx_layouts can override this as they
please.
The possibilities are many ;-)
See you round,
LeeBB
----- Original Message -----
I have a layout where the menu is kind of intertwined
into it good. I want
to be able to insert a menu from the
current circuit into that spot using
cfmodule. I do this
because I think it's best to have my menu as a
fuseaction.
Easier to control all the links with XFAs. Anyway, I
am
wondering if/how everyone else does this? I would like to
have some sort of
default menu that a circuit could override with
it's own menu without having
to recreate the layout for each
circuit.