VfsFileWidget

(Difference between revisions)
Jump to: navigation, search
(Configuration)
m (Added "See Also" section and added link to XMLContent page)
Line 28: Line 28:
  
 
With ''notprojectaware'' you prevent the project awareness flag in the popup resource tree.
 
With ''notprojectaware'' you prevent the project awareness flag in the popup resource tree.
 +
 +
==See also==
 +
*[[XMLContent]]

Revision as of 22:47, 31 July 2012

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>  

Instead of hidesiteselector you can give showsiteselector (which is the default, I guess).

When you want users restrict to directories only you can use excludefiles as configuration value.

With notprojectaware you prevent the project awareness flag in the popup resource tree.

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox