Sophist
Guest
I want to display a user's details in a module but read-only.
At the moment the Form module only uses the form template - if user has r/w access to elements they get a saveable form, and if they only have r/o access they get nothing.
Implementation options seem to me to be:
1. Create a separate "Form Display Module"
2. Add an option to the existing Form Module to only display Details view.
3. Get the Form Module to display in Details style automatically if user has r/o access to all elements like a content form does.
4. Add a selectable r/o template to the existing template list (difficult because the list is used elsewhere)
My preference is to implement 2. and 3. Simple changes to mod_fabrik_form_boot.php e.g. "$input->set('view', 'details');" do not work, so I have no idea (yet) how to achieve 2. much less 3.
At the moment the Form module only uses the form template - if user has r/w access to elements they get a saveable form, and if they only have r/o access they get nothing.
Implementation options seem to me to be:
1. Create a separate "Form Display Module"
2. Add an option to the existing Form Module to only display Details view.
3. Get the Form Module to display in Details style automatically if user has r/o access to all elements like a content form does.
4. Add a selectable r/o template to the existing template list (difficult because the list is used elsewhere)
My preference is to implement 2. and 3. Simple changes to mod_fabrik_form_boot.php e.g. "$input->set('view', 'details');" do not work, so I have no idea (yet) how to achieve 2. much less 3.