Custom Views
(Difference between revisions)
Cschoenfeld (Talk | contribs) |
Cschoenfeld (Talk | contribs) m |
||
Line 1: | Line 1: | ||
A custom view in OpenCms can be very helpful to implement your extensions to OpenCms if adding your own custom [[Adding Admin Tools|Admin Tools]] is not enough. | A custom view in OpenCms can be very helpful to implement your extensions to OpenCms if adding your own custom [[Adding Admin Tools|Admin Tools]] is not enough. | ||
− | Custom views show up in the view selection drop down at the top of the OpenCms screen. | + | Custom views show up in the view selection drop down at the top of the OpenCms screen. After initial setup there are three existing views: Explorer, Administration, and finally the Workflow view. |
The list of views is determined on OpenCms startup from the contents of the VFS directory <tt>/system/workplace/views</tt>. If you create your own sub folder there, it will be listed in the view drop down, given that you set the following properties: | The list of views is determined on OpenCms startup from the contents of the VFS directory <tt>/system/workplace/views</tt>. If you create your own sub folder there, it will be listed in the view drop down, given that you set the following properties: |
Revision as of 19:03, 14 November 2006
A custom view in OpenCms can be very helpful to implement your extensions to OpenCms if adding your own custom Admin Tools is not enough.
Custom views show up in the view selection drop down at the top of the OpenCms screen. After initial setup there are three existing views: Explorer, Administration, and finally the Workflow view.
The list of views is determined on OpenCms startup from the contents of the VFS directory /system/workplace/views. If you create your own sub folder there, it will be listed in the view drop down, given that you set the following properties:
- NavPos - Position of your new view in the drop down. By default, the Explorer view has a NavPos of 10, Administration has 20, and Workflow has 30. You can use any floating point value you like, for example 5 to place your new view between the Explorer and the Administration view.
- NavText - Title of your view in the drop down. The title can be of the form of a resource bundle key (${key.<keyname>} and must be available to the resource bundles of OpenCms.
- default-file - the name of the file (relative to your view folder path) to display when the view is selected
To make your changes affect the view menu, publish the Offline project and restart OpenCms.