John,
In reply to your emailed question:
just wondered where the logic behind the showing / hiding of the Edit / Delete Icons on the main Listings template was - I cant see anything in the source ? - (this is roughly what i am trying to do)
These controls are all handled by XMod.
If a user has added a record they will see the edit icon and be able to edit only their listings if you have allowed them to edit arecord in the manage forms >> Settings tab
Administrator will always see all of the icons for edit, delete, and approve.
If you have created the listing on behalf of a user, you will need to go back in and edit the listing. An admin console of the form will be exposed to you, as administrator, and you can assign the listing to a user. This will now give them the ability to edit that listing.
The code for the edit, delete and approve buttons is toward the bottom of the list view template.
References:
http://training.dnnprofessor.com/BusinessDirectory.aspx
XMod Online Help
http://dnndev.com/help/xmod/default.htm
Look under the section for template tags
xmod:editbutton, xmod:deletebutton, and xmod:approvebutton
Also See:
Configuring User Permissions
http://dnndev.com/help/xmod/Content/Configuring_User_Permissions.htm
Walkthrough: Creating A Form
http://dnndev.com/help/xmod/Content/XMod40_Walkthrough__Creating_A_Form.htm
|