External GUI Module Representing News
The WebOffice core client and the WebOffice flex Client are able to integrate a GUI module representing news when calling the project. For that configure an external GUI module in the project configuration that refers to the file C:\Tomcat\webapps\<WebOffice application>\pub\custom_pages\news_check.jsp.
Configuration of the external GUI module news_check.jsp
The parameter Display only once? with button Accept at the GUI module is not possible with configured news_check.jsp. |
Configure the window type Hidden in the Display mode IFrame.
Configuration Display mode IFrame - Window type 'Hidden'
In a next step create a file news.htm and save it in the directory C:\Tomcat\webapps\<WebOffice application>\pub\custom_pages. The file news.htm contains the news, that should be presented when calling the project.
Next open the file news_check.jsp in an editor an make some settings concerning the display of the news in the client:
•String newsFilePath: path to the file representing the news (relative to the WebOffice root directory).
•String displayMode: display mode for the news page (0=floating, 1-4=docked to quadrants 1 to 4, minimized=floating minimized)
•String headline: headline of the module
•String width: width of the module in pixel
•String height: height of the module in pixel
•boolean closeable: setting, if the module can be closed by the user (true/false).
•boolean dockable: setting, if the module can be docked by the user (true/false).
Extract from news_check.jsp
The file news_check.jsp checks, if the file news.htm exists in the configured directory.
•If the file exists, then an additional iFrame with the settings in news_check.jsp will be opened when calling the project.
•If the file does not exist, the project will be called without any iFrame with news.
So the administrator only has to delete the file news.htm if there aren't any news respectively put the file into that directory to represent news.
Call the project with a GUI module representing news