I want to do a simple Admin settings for pluggin in Elgg 1.8.1
things I want to add are
How the code should look like?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Satheesh PM@thuvalpakshi
Satheesh PM - 0 likes
You must log in to post replies.create a file called "edit.php" at the path <YourModule>/views/default/settings/<YourModule>/edit.php
Code the form there, no need for a submit button, just code the inputs and text that you need.
Set all of the input names to be "params[name]" where name will be the name of the plugin setting.
Use $vars['entity']->name to retrieve that setting (to set the existing value for example)
For a good example look at Ray J's spam login filter, he has both yes/no dropdowns and text areas on a settings page.
thank you very much Matt