I believe I haven't made myself clear in my goal... I would like the
module to extend functionality of the site (and other modules) being
loaded into.
For example,
I have a testCBSite with the module blog loaded.
testCBSite's configuration has a ModuleRoute added for blog as /blog --
blog.
testCBSite has a handler general with methods {home}
blog has handler entry with methods {showAll, showTop, showEntry}
Therefore, the valid routes would be
/testCBSite/index.cfm/general/home
/testCBSite/index.cfm/blog/entry/showAll
/testCBSite/index.cfm/blog/entry/showTop
/testCBSite/index.cfm/blog/entry/showEntry
What I would like to accomplish is to have a module (CMS) that would
watch for invalid events and (if the CMS has it) render the content
from the CMS, no matter what the route is.
For example, the following would be captured by the CMS module and
rendered.
/testCBSite/index.cfm/general/about
/testCBSite/index.cfm/general/contact
/testCBSite/index.cfm/general/directions
/testCBSite/index.cfm/blog/entry/about
(The above, is just the start of how i would like to get it to work w/
in coldBox, i have a lot of ideas of extending the CMS's functionality
so the Site or other Modules can then use the CMS's API to render the
navigation, form labels, form context help, etc} - but those topics
can be discussed at another time)
So based on hopefully what is a clear goal now, how would this be
accomplished within coldBox.. I believe the use of the interceptor is
the correct approach, but finding the right interception point and the
right logic to determine that it will be an InvalidEvent is where i'm
struggling to find the solution.
PS. Like I've said before, great job on coldbox and the support
behind coldbox.