[eluser]gusa[/eluser]
[quote author="jTaby" date="1212713779"]Given your deadline, Here's what I would do:
1) Modify the one-to-many plugin so that you can add your own WHERE clause to the query through YAML. The changes to plugins/onetomany.php and plugins/relationalcontainer.php should be minimal.
2) As far as editing, deleting, you're correct, CodeExtinguisher doesn't support that, but now that you mention it, it would be a very nice addition. I can't promise you I can deliver on it on a week though. As an alternative, you can modify the RelationalContainer::getHTML() method to add a link that takes you to page to manage the related data.
I know it's not an optimal solution, but it works and if it's an option, you can update your clients' codex setup at a later time.[/quote]
ok, great. thanks.
however, my intuition says that there's another solution.
let's say that i have two controllers: sales and lines_of_sale.
i want to access lines_of_sale from the first controller, by:
1) putting a link in sales' overview table to the second controller (the url could be lines_of_sale/<sa_id>, where <sa_id> is the primary key of SALES),
2) lines_of_sale must restrict the search somehow ($this->table_access_restriction?),
3) once in lines_of_sale, the add and edit forms should remember the original call.
if that's possible, then i can save a lot of work.
the question is how can i hack codex to allow me to do that