Luis, nothing I try works.
Here is what I want to do
www.domainname.com/community/andyscott/module/2010/09/01
If I try this in Routes.cfc
addModuleRoute('pattern='/module', module='module);
and moduleConfig.cfc
routes = [
{pattern="/community/:name/module",
handler="manager",action="index"},
{pattern="/community/:name/module
/:year-numeric?/:month-numeric?/:day?/:blogTitle?",
handler="manager",action="dspPosts"}
];
I get community.index is not a registered event.
However if I do
addModuleRoute('pattern='/community/:name /module', module='module);
routes = [
{pattern="/ ", handler="manager",action="index"},
{pattern="/:year-numeric?/:month-numeric?/:day?/:blogTitle?",
handler="manager",action="dspPosts"}
];
Both handlers can be called fine, the only problem is that the pattern for
:name is NEVER passed over to the modules.
This is a show stopper for me now.
Regards,
Andrew Scott
http://www.andyscott.id.au/
From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of Luis Majano
Sent: Friday, 3 September 2010 11:33 AM
To: coldbox@googlegroups.com
Subject: Re: [coldbox:5560] Re: ColdBox Modules and routing
Ok try this.
1. Create an entry point to your module in the parent app. Maye like
AddModuleRoute("/mymod","modulename")
This just maps a piece of the URL to your module. Then in your actual
module