I'm working on an FB3 intranet portal (first biggish FB3 app I've built). Fairly
standard; the portal will have global navigation header
and footers, and contains many "mini-applications" such as a forum. Using the forum
mini-app as an example, it is self-contained and therefore I think I should call it
using cfmodule rather than cfinclude (to ensure that local variables in the portal
circuit are not falsely overwritten etc).
My question is, where in my code is the most elegant place to put the actual cfmodule
call to the forum mini-app?
Obviously I can't include the cfmodule call in my href link to the forums app.
One option I've thought of is to create a forum fuseaction in my top-level portal
circuit which cfmodules
the mini-app, and link to this fuseaction from my portal.
e.g. on the display page: <a href="#self#?fuseaction=#thisCircuit#.forum">Forums</a>
and in the switch:
<cfcase value="forum">
<cfmodule template="#self#" fuseaction="forum.display_forums">
</cfcase>
The other option I can think of would I be to link straight to the forum circuit from
my href on the display page, but I can't see how to cfmodule rather than cfinclude in
this case.
am I thinking about this along the right lines?
thanks
John
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================