Volet | ||
---|---|---|
| ||
Esup-News Portlet - Installation GuideAutors : Julien Gribonvald |
Sommaire | ||||||
---|---|---|---|---|---|---|
|
Important note
This application is working with these requirements :
...
- delete in include.jsp <c:set var="pltc_target">...</c:set>
- modify in include.jsp <c:set var="portletParamPrefixe" value="pP_" /> replace the value "pltp_" by "pP_"
- replace extLib/portlet-api-1.0.jar by portlet-api_2.0.jar
Installation
Installing the portlet
- Download esup-news<version>.zip from https://sourcesup.cru.fr/frs/?group_id=806
...
- Initializing the database
ant db-init
Remarque This Command will erase all existing data in your database !!!!
Your database (configured in build.properties) must exists.
...
- Deploying the application
- ant init
- ant deploy
Configuration
file build.properties
Description of properties
- app.name=esup-news
used to deploy the application with this name in webapps and will be used to define the portlet definition ID = <app.name>.news, here will be esup-news.news, this parameter is useful for the portlet declaration in the portal. - db.type =mysql
The db type should be mysql or postgresql, it's useful to know which sql script to use for the database initialisation and all ibatis mapping files (xml files) to use for the DAO. - db.filename =
This property is useful to know wich sql script to use to make the update of your actual database, uncomment/comment only the good script corresponding to your database type and application last version. - attachments.activate=true
To activate or not the possibility to join attachments in news. - deploy.update-esco=false
This property should stay to false, if passed to true it will act as a custom update wish will replace all files in build directory by these on the update-esco directory. Actually update-esco contains jsp where it force the the option rss to yes and the access option to public. - app.compatibility_3_2=true
To deploy the application in compatibility mode with an uPortal 3.2 version.
file properties/news.properties
Bloc de code |
---|
#ldap properties ldap.url=ldap://ldap.univ.fr:389 ldap.base=ou=people,dc=univ,dc=fr ldap.username=cn=admin,ou=administrateurs,dc=univ,dc=fr ldap.password=***** ldap.anonymousReadOnly=false |
...
Remarque |
---|
other properties define the number of items to show in different paginated pages |
Connecting with Esup-Lecture
- Find the link to add your news in the admin view and type properties and an xml icon will get the link. You will find there all links of all types to add in esup-lecture.xml file.
An exemple of declaration in esup-lecture.xml :
Bloc de code <context name = "Mes annonces" id = "annonces"> <description>Mes annonces</description> <categoryProfilesUrl url="http://your.portal.domain/esup-news/feeds/pub/rss?t=6&type=DEFAULT" timeout="" idPrefix="news"/> </context>