Admin Form allows you to create data collections by connecting directly to your wordpress database.
When you create a new form you can choose whether to link it to a table or create a new one.
As soon as a new form is created, a menu with various tabs will appear.
FORM
Shows how the table fields will be modified.
If the table was created with the plugin, you can press the "new field" button to create new database fields.
By clicking on the pencil you can change how the individual fields will be edited.
SETTINGS
Show module settings: What data should be extracted, who can edit it, how much data per page etc...
LIST VIEW FORMATTING
How the data is displayed in the data list and thus also in the frontend
FRONTEND
How data is displayed in the frontend.
A shortcode for displaying the frontend is generated from a list.
Shortcodes
To print the graphics of a list you can use the shortcode:
[adfo_list id=list_id] where id is the id of the list. If you want to display more lists within the same page that derive from the same list you can set the prefix attribute with a unique short code like prefix = "abc".
If in the tab setting you have set filters [%params.xxx] you can pass them in the list to further filter the results. Example:
[adfo_list id=list_id xxx=23]
[adfo_tmpl] To run the custom template engine
[adfo_single dbp_id=xxx id=xxx] Show the detail of a single record
[adfo_total id=xxx] Return the total of records a single list
Template Engine
You can modify the data you see through an integrated template engine
The integrated template engine can be used both to modify table data such as calculated fields, and to generate custom templates in lists.
It is possible to use the functions of the template engine also outside the plugin by inserting the code between shortcodes
[adfo_tmpl] {my code} [/adfo_tmpl]
">Learn more
Form Javascript
In the management of insertion forms you can use javascript to manage special actions in fields such as making a field appear or disappear or validate its content.
">Approfondisci
Hooks & filters
PHP
Develop your site using the plugin functions directly.
The
admin_form\ADFO class contains three main functions for data extraction:
- admin_form\ADFO::get_list(list_id); Show front view
- $data = admin_form\ADFO::get_data(list_id); Returns the array of data from a list
- $row = admin_form\ADFO::get_detail(list_id, $record_id) Returns a given record in raw format. This format is needed because the result can be edited and saved using the function admin_form\ADFO::save_data(...)
">Learn more
Tutorials