I have a requirement to be able to do things like this:<br><br>A user creates "actionitems" which are just task notes.<br>An actionitem might not be associated with a project,<br>or a meeting, or assigned to another user, etc. Later,<br>
it might be attached to a meeting; then all actionitems<br>associated with that meeting can be listed; individual items<br>can be updated, etc. Also, there might be several meetings <br>associated with a given project. We want to list those,<br>
list the actionitems associated with particular projects,<br>etc.<br><br>I have a lot of this worked out using Chained, but there's a problem. <br>I've got controller classes like:<br><br>C::P::Actionitems<br>C::P::Meetings<br>
C::P::Users::Profile::Actionitems<br>C::P::Users::Profile::Meetings<br>C::P::Users::Profile::Meetings::Actionitems<br>etc<br><br>It gets yukkie fast. I'm looking for a way to, -- as the<br>documentation says -- "redispatch a chain through any controller <br>
or namespace you want," and I'd certainly like to stay DRY. I need to be able to mix and match methods, so I can serve URLs like these:<br><br>/project/list # self explanatory<br>/meeting/list # self explanatory<br>
/project/*/meeting/list # meetings associated to a project<br>/user/*/project/list # projects user is member of<br>/user/*/actionitem/create # unassociated item<br>/user/*/actionitem/*/edit # unassociated item<br>
/user/*/meeting/*/actionitem/list # items associated to a meeting<br>/user/*/meeting/*/actionitem/*/edit # edit a particular meeting's item <br>/user/*/project/*/meeting/*/actionitem/*/edit # yada yada<br><br>In this scenario, actions may be endpoints in some situations, links in others. <br>
To put it another way, is there a way to have actions like these, and use<br>Chained to dispatch around?<br><br>C::P::Users<br>C::P::Actionitems<br>C::P::Meetings<br>C::P::Projects<br><br>Is this even possible to do using Chained? If not, what would be recommended?<br>
<br><br>/dennis<br>