Plugin Data Inclusion | |
Authors | Anyware Services |
Most recent version | 1.4.0 |
Tracking issues | |
Download | Lastest version |
This extension allows the webmaster to defines connections to SQL databases or LDAP directories, and to define associated requests to get information from those connections, so the contributor can use them in his rich content.
The defined requests are written in SQL ou LDAP syntax. They can be parametrized.
Samples of requests :
The Data sources tool allows you to define LDAP or SQL connections and queries.
Open the tool by clicking on "Data sources" button on home tab.
The tool show the tree of existing connections and queries
From this tool, you can create, edit or delete connections and/or queries.
To add a LDAP connection you must enter the following parameters:
To add a SQL connection you must enter the following parameters:
To add a LDAP request, select the LDAP connection and click on 'New query'
In dialog box, set :
givenName[Lastname],sn[Firstname],mail[E-Mail address]
Constraint not configurable:
(mail=*.com)
Constraint configurable
(supannAffectation=${affectation})
To add a SQL request, select the SQL connection and click on 'New query'
In dialog box, set :
SQL query not configurable:
SELECT firstname AS 'Firstname', lastname AS 'LastName', mail AS 'E-Mail address', service FROM Staff
SQL query configurable:
SELECT firstname AS 'Firstname', lastname AS 'LastName', mail AS 'E-Mail address' FROM Staff WHERE service=${service}
In edition, click on 'Add query' button to insert data from defined SQL or LDAP queries
In dialog box, choose the query in the tree :
Set the parameters if necessary
Save the content.
Add the plugin JAR in the WEB-INF/lib directory of your Ametys application and restart the servlet engine.
In the WEB-INF/param/cms-ribbon.xml file, in home tab, add the button of id org.ametys.datainclusion.tool.DataSources
<group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_ADVANCED_TOOL_LABEL" icon=""> <large></large> <medium> <control id="org.ametys.newsletter.userinterface.Newsletters"/> <layout size="small"> <control id="org.ametys.datainclusion.tool.DataSources"/> <control id="org.ametys.web.userinterface.Alias"/> </layout> </medium> <small/> </group>