As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<widget xforms-type="xf:upload" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmcontent,wcm:avmfolder</param> </widget> <widget xforms-type="xf:upload" appearance="image_file_picker" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmcontent</param> <param name="filter_mimetypes">image/*</param> </widget> <widget xforms-type="xf:upload" appearance="html_file_picker" javascript-class-name="alfresco.xforms.FilePicker"> <!– allow folder selection to handle index pages –> <param name="selectable_types">wcm:avmcontent,wcm:avmfolder</param> <param name="filter_mimetypes">text/html</param> </widget> <widget xforms-type="xf:upload" appearance="folder_picker" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmfolder</param> <param name="filter_mimetypes">*</param> </widget> <widget xforms-type="xf:upload" appearance="file_picker" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmcontent</param> </widget>
<widget xforms-type="xf:upload" appearance="pdf_file_picker" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmcontent</param> <param name="filter_mimetypes">application/pdf</param> </widget>
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:az="http://www.sky.it/contentmodels/az" xmlns:alf="http://www.alfresco.org" targetNamespace="http://www.sky.it/contentmodels/az"> <xs:element name="enterprise"> <xs:complexType> <xs:sequence> <xs:element name="logo" type="xs:anyURI"> <xs:annotation> <xs:appinfo> <alf:label>Logo path</alf:label> <alf:alert>A logo is required to create content</alf:alert> <alf:appearance>image_file_picker</alf:appearance> </xs:appinfo> </xs:annotation> </xs:element> <xs:element name="name" type="xs:normalizedString"/> <xs:element name="code" type="xs:normalizedString" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
<widget xforms-type="xf:upload" appearance="image_file_picker" javascript-class-name="alfresco.xforms.FilePicker"> <param name="selectable_types">wcm:avmcontent</param> <param name="filter_mimetypes">image/*</param> </widget>
<widget xforms-type="xf:upload" javascript-class-name="alfresco.xforms.FilePicker"/>
============================== Alfresco 2.1 Release Candidate ==============================
You can get access to the v2.1 branch and the current 2.1 Enterprise BETA (it is much more stable than Community) either via subscription or by requesting a trial eval.
<param name="folder_restriction">/images</param>
<xsl:template match="/"> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="/root/filepicker"/> </xsl:attribute> </xsl:element> </xsl:template>