VfsFileWidget

From OpenCms Wiki
(Difference between revisions)
Jump to: navigation, search
(Page created)
 
(All options listed)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
VFSFileWidget allows the user to select files from the Virtual File System.
+
VfsFileWidget allows the user to select files from the Virtual File System.
This is the default widget for the [[OpenCmsVfsFile|OpenCmsVfsFile datatype]].
+
This is the default widget for the datatypes [[OpenCmsVfsFile]] and [[OpenCmsVarLink]].
  
 
+
The widget is implemented by org.opencms.widgets.CmsVfsFileWidget.
The widget is implemented by org.opencms.widgets.CmsVfsFileWidget
+
  
 
== Configuration ==
 
== Configuration ==
You can configure the rootpath for the widget and whether the user should see a site selector on top of the window
+
You can configure the root path (start site) for the widget and whether the user should see a site selector on top of the window.
  
 
  <xsd:complexType name="OpenCmsPortalElement">
 
  <xsd:complexType name="OpenCmsPortalElement">
Line 24: Line 23:
 
  </xsd:annotation>   
 
  </xsd:annotation>   
  
Instead of ''hidesiteselector'' you can give ''showsiteselector'' (which is the default, I guess)
+
=== Options ===
 +
; hidesiteselector, showsiteselector : The site selector is hidden or shown (default).
 +
 
 +
; excludefiles, includefiles : Files are hidden in the popup tree or shown (default).
 +
 
 +
; notprojectaware, projectaware : Folders and files are shown according to the current project or not (default).
 +
 
 +
; startsite : The site the popup tree should be opened with.
 +
 
 +
==See also==
 +
*[[XMLContent]]

Latest revision as of 15:21, 14 September 2012

Contents

Description

VfsFileWidget allows the user to select files from the Virtual File System. This is the default widget for the datatypes OpenCmsVfsFile and OpenCmsVarLink.

The widget is implemented by org.opencms.widgets.CmsVfsFileWidget.

Configuration

You can configure the root path (start site) for the widget and whether the user should see a site selector on top of the window.

<xsd:complexType name="OpenCmsPortalElement">
 <xsd:sequence>
  <xsd:element name="Element" type="OpenCmsVfsFile" minOccurs="1" maxOccurs="1"/>
 </xsd:sequence>
 <xsd:attribute name="language" type="OpenCmsLocale" use="optional"/>
</xsd:complexType>
<xsd:annotation>	
 <xsd:appinfo>
  <layouts>
   <layout element="Element" widget="VfsFileWidget" configuration="startsite=/sites/www.domain.org/repository|hidesiteselector" />
  </layouts>
 </xsd:appinfo>
</xsd:annotation>  

Options

hidesiteselector, showsiteselector 
The site selector is hidden or shown (default).
excludefiles, includefiles 
Files are hidden in the popup tree or shown (default).
notprojectaware, projectaware 
Folders and files are shown according to the current project or not (default).
startsite 
The site the popup tree should be opened with.

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox