AppSuite:Writing a portal plugin: Difference between revisions

From Open-Xchange
No edit summary
Line 2: Line 2:


== Before we start: How to experiment efficiently==
== Before we start: How to experiment efficiently==
The AppSuite has a very efficient way of enabling or disabling potential plugins. This makes it somewhat complicated to just try things out.  
The AppSuite has a very efficient way of enabling or disabling potential plugins via manifests, which involves caching on the server side. This makes it somewhat cumbersome to just try things out, especially if you have not control over your server/backend and cannot restart it at will. Because of that, there is an array in io.ox/portal/widgets.js that is named DEV_PLUGINS. This will work


== The simplest portal plugin: An advertisement ==
== The simplest portal plugin: An advertisement ==
Line 14: Line 14:
* unmovable
* unmovable


== Finishing touches ==
Now that you have learned all there is about portal plugins, it is time to clean up. Have you removed the plugin from DEV_PLUGINS? Good. Maybe we can interest you in [[AppSuite:i18n |  preparing the text for readers from other countries]]? Splendid! Now you are good to go.


[[Category:AppSuite]]
[[Category:AppSuite]]
[[Category:UI]]
[[Category:UI]]

Revision as of 09:01, 11 April 2013

Summary: This articles covers how to write a plugin that shows on the portal page. A portal plugin always gives a short overview on a piece of information (the so-called 'tile'). It can link a longer view that is opened when the tile is clicked, this we call the side pop-up. The side pop-up is optional.

Before we start: How to experiment efficiently

The AppSuite has a very efficient way of enabling or disabling potential plugins via manifests, which involves caching on the server side. This makes it somewhat cumbersome to just try things out, especially if you have not control over your server/backend and cannot restart it at will. Because of that, there is an array in io.ox/portal/widgets.js that is named DEV_PLUGINS. This will work

The simplest portal plugin: An advertisement

The simplest portal plugin comes without a side pop-up and shows static content on its tile. Two uses for this would be presenting an advertisement or showing a link list, for example to other parts of an company's intranet that are not integrated into the AppSuite (yet).

A typical portal plugin

A typical portal plugin uses the tile to display a short summary or teaser of its contents and uses a side-popup to show the whole content.

Special switches

  • unique
  • unmovable

Finishing touches

Now that you have learned all there is about portal plugins, it is time to clean up. Have you removed the plugin from DEV_PLUGINS? Good. Maybe we can interest you in preparing the text for readers from other countries? Splendid! Now you are good to go.