Routing values from frontend to backend
Currently I try to write my first maintain-module. The module contains a backend- (building/changing config-files) and a frontend-part. For transmitting the user-inputs to the backend and the visible parts to the frontend i make use of mod_page. But on this way i am unable to receive any post/get-values?!
Let us assume:
I have placed the following link to network_tools_widget by adding a filter to the hooks list:
mod_page.php?mod=maintain_deployment&action=show
Now (after clicking on the link), mod_page calls the registered method (ex. Module::add_filter('mod_page','populateModPage',0) -> populateModPage) of my module. But I am unable to add the correct content that is based on the action-value to the content-container, because there is no way to receive the value (action could be show,list,edit...). So, is there a way to receive a list of additional parameters?
Oh (embarrassingly ;))...
Oh (embarrassingly ;))... you are right!
Here in germany we would say: Did not see the forest for the trees... (was a little absorbed in the frontend/backend-concept)
Many thanks for this inspiration (and of course it works very well..).
Apropos: Iam student of computer sciences (technical cs.) at the university of applied sciences cologne, an instituation with about 16.000 students. Currently i am working on a project whose result represents the implementation of a managment-system like maintain to manage all the hosts,subnets (beginning with a small net in one lab)... in a very simple way (and maintain enables this possibility).
Right on - glad our project
Right on - glad our project can help you with that. If you have more questions, just let us know.
Oh, and by the way -- I am German, too.
Frédéric Wenzel
Maintain Team
fred -at- osuosl -dot- org


Hmm I've never seen a case
Hmm I've never seen a case where someone couldn't get the variables. That variable should respond to $_GET['action'] or $_REQUEST['action']. If you take a look at other mods that use the mod_page to display things you'll find many of them use a switch in their 'populateModPage' method.
A very very simple example would be the fullname module. (https://svn.osuosl.org/public/maintain-modules/trunk/fullname)
Please keep in touch!
Michael Clay
Maintain Developer
OSUOSL