Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.social.workspace.layout--widgets

This contribution is part of XML component org.nuxeo.ecm.social.workspace.layout inside nuxeo-social-workspace-web-5.6.jar

Extension point

Extension point widgets of component WebLayoutManager.

Contributed items

  • <widget name="social_workspace_is_public" type="template">
          <labels>
            <label mode="any">label.widget.social.isPublic</label>
          </labels>
          <helpLabels>
             <label mode="any">label.widget.social.isPublic.info</label>
           </helpLabels>
          <translated>true</translated>
          <fields>
            <field>socialw:isPublic</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /widgets/boolean_radio_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="social_workspace_is_restricted" type="template">
          <labels>
            <label mode="any">label.widget.social.isRestricted</label>
          </labels>
          <helpLabels>
             <label mode="any">label.widget.social.isRestricted.info</label>
           </helpLabels>
          <translated>true</translated>
          <fields>
            <field>socialw:approveSubscription</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /widgets/boolean_radio_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="content_picture" type="file">
          <labels>
            <label mode="any">label.widget.article.picture</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>contentpict:picture</field>
            <field>contentpict:picturename</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
            <property name="validator">ImageBlobValidator</property>
          </properties>
        </widget>
  • <widget name="summary_note_with_picture" type="template">
          <fields>
            <field>note:note</field>
            <field>note:mime_type</field>
            <field>contentpict:picturename</field>
          </fields>
          <properties widgetMode="view">
            <property name="translatedHtml">
              #{noteActions.translateImageLinks(field_0)}
            </property>
            <property name="cssClass">note_content_block</property>
            <property name="float">left</property>
          </properties>
          <properties mode="any">
            <property name="template">/widgets/summary_note_with_picture_widget_template.xhtml</property>
          </properties>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
        </widget>
  • <widget name="summary_social_document_visibility_action" type="summary_social_document_visibility_action">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>false</translated>
          <fields>
            <field>socialdoc:isPublic</field>
          </fields>
          <widgetModes>
            <mode value="any">#{currentDocument.isProxy() ? 'hidden' : 'view'}</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="isActionVisible">true</property>
          </properties>
        </widget>
  • <widget name="summary_news_item_visibility_action" type="summary_social_document_visibility_action">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>false</translated>
          <fields>
            <field>socialdoc:isPublic</field>
          </fields>
          <widgetModes>
            <mode value="any">#{currentDocument.isProxy() ? 'hidden' : 'view'}</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="isActionVisible">#{currentUser.isAdministrator()}</property>
          </properties>
        </widget>
  • <widget name="social_document_visibility" type="template">
          <labels>
            <label mode="any">social.document.publication</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>socialdoc:isPublic</field>
          </fields>
          <widgetModes>
            <mode value="edit">#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 'edit' : 'view'}</mode>
            <mode value="create">#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 'edit' : 'view'}</mode>
          </widgetModes>
          <properties mode="any">
            <property name="required">true</property>
            <property name="template">
              /widgets/visibility_radio_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="request_user_email" type="text">
          <labels>
            <label mode="any">email</label>
          </labels>
          <fields>
             <field>data.req.userEmail</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
        </widget>
  • <widget name="request_username" type="singleUserSuggestion">
          <labels>
            <label mode="any">label.username</label>
          </labels>
          <fields>
             <field>data.req.username</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties widgetMode="view">
            <property name="userSuggestionSearchType">USER_TYPE</property>
            <property name="firstLabelField">username</property>
            <property name="hideFirstLabel">true</property>
            <property name="displayAction">view</property>
          </properties>
        </widget>
  • <widget name="listing_article_consultation" type="listing_social_document_consultation">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>false</translated>
          <fields>
            <field>data</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="displayActions">true</property>
          </properties>
        </widget>
  • <widget name="listing_news_consultation" type="listing_social_document_consultation">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>false</translated>
          <fields>
            <field>data</field>
          </fields>
          <widgetModes>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="displayActions">#{socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace()}</property>
          </properties>
        </widget>
  • <widget name="social_workspace_group_members" type="template">
          <labels>
            <label mode="any">label.groupManager.userMembers</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">USER_TYPE</property>
          </properties>
        </widget>
  • <widget name="social_workspace_bulk_import" type="template">
          <labels>
            <label mode="any">label.groupManager.groups</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">GROUP_TYPE</property>
          </properties>
        </widget>
  • <widget name="required_description" type="textarea">
          <labels>
            <label mode="any">description</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:description</field>
          </fields>
          <properties widgetMode="edit">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="social_document_content" type="richtext_with_mimetype">
          <labels>
            <label mode="any">label.social.document.content</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>note:note</field>
            <field>note:mime_type</field>
          </fields>
          <properties mode="view">
            <property name="translatedHtml">
              #{noteActions.translateImageLinks(field_0)}
            </property>
          </properties>
        </widget>
  • <widget name="social_request_permission" type="selectOneMenu">
          <fields>
            <field>data.docinfo.permission</field>
          </fields>
          <labels>
            <label mode="any">label.docinfo.permission</label>
          </labels>
          <selectOptions>
            <options itemLabel="#{messages[entry.label]}" itemValue="#{entry.value}" value="#{bulkImportSocialWorkspaceActions.rightsMenuEntries}" var="entry"/>
          </selectOptions>
        </widget>
  • <widget name="user_request_accept" type="template">
          <labels>
            <label mode="any">command.userrequest.accept</label>
          </labels>
          <widgetModes>
            <mode value="any">#{currentUser.isAdministrator() || socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace() ? 'edit' : 'hidden'}</mode>
          </widgetModes>
          <fields>
            <field>data</field>
          </fields>
          <properties mode="any">
            <property name="template">/widgets/user_request_accept_widget_template.xhtml</property>
          </properties>
        </widget>
  • <widget name="user_request_reject" type="template">
          <labels>
            <label mode="any">command.userrequest.reject</label>
          </labels>
          <widgetModes>
            <mode value="any">#{currentUser.isAdministrator() || socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace() ? 'edit' : 'hidden'}</mode>
          </widgetModes>
          <fields>
            <field>data</field>
          </fields>
          <properties mode="any">
            <property name="template">/widgets/user_request_reject_widget_template.xhtml</property>
          </properties>
        </widget>

XML source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="social_workspace_is_public" type="template">
      <labels>
        <label mode="any">label.widget.social.isPublic</label>
      </labels>
      <helpLabels>
         <label mode="any">label.widget.social.isPublic.info</label>
       </helpLabels>
      <translated>true</translated>
      <fields>
        <field>socialw:isPublic</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /widgets/boolean_radio_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="social_workspace_is_restricted" type="template">
      <labels>
        <label mode="any">label.widget.social.isRestricted</label>
      </labels>
      <helpLabels>
         <label mode="any">label.widget.social.isRestricted.info</label>
       </helpLabels>
      <translated>true</translated>
      <fields>
        <field>socialw:approveSubscription</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /widgets/boolean_radio_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="content_picture" type="file">
      <labels>
        <label mode="any">label.widget.article.picture</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>contentpict:picture</field>
        <field>contentpict:picturename</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
        <property name="validator">ImageBlobValidator</property>
      </properties>
    </widget>

    <widget name="summary_note_with_picture" type="template">
      <fields>
        <field>note:note</field>
        <field>note:mime_type</field>
        <field>contentpict:picturename</field>
      </fields>
      <properties widgetMode="view">
        <property name="translatedHtml">
          #{noteActions.translateImageLinks(field_0)}
        </property>
        <property name="cssClass">note_content_block</property>
        <property name="float">left</property>
      </properties>
      <properties mode="any">
        <property name="template">/widgets/summary_note_with_picture_widget_template.xhtml</property>
      </properties>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
    </widget>

    <widget name="summary_social_document_visibility_action" type="summary_social_document_visibility_action">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>false</translated>
      <fields>
        <field>socialdoc:isPublic</field>
      </fields>
      <widgetModes>
        <mode value="any">#{currentDocument.isProxy() ? 'hidden' : 'view'}</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="isActionVisible">true</property>
      </properties>
    </widget>

    <widget name="summary_news_item_visibility_action" type="summary_social_document_visibility_action">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>false</translated>
      <fields>
        <field>socialdoc:isPublic</field>
      </fields>
      <widgetModes>
        <mode value="any">#{currentDocument.isProxy() ? 'hidden' : 'view'}</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="isActionVisible">#{currentUser.isAdministrator()}</property>
      </properties>
    </widget>

    <widget name="social_document_visibility" type="template">
      <labels>
        <label mode="any">social.document.publication</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>socialdoc:isPublic</field>
      </fields>
      <widgetModes>
        <mode value="edit">#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 'edit' : 'view'}</mode>
        <mode value="create">#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 'edit' : 'view'}</mode>
      </widgetModes>
      <properties mode="any">
        <property name="required">true</property>
        <property name="template">
          /widgets/visibility_radio_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="request_user_email" type="text">
      <labels>
        <label mode="any">email</label>
      </labels>
      <fields>
         <field>data.req.userEmail</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
    </widget>

    <widget name="request_username" type="singleUserSuggestion">
      <labels>
        <label mode="any">label.username</label>
      </labels>
      <fields>
         <field>data.req.username</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties widgetMode="view">
        <property name="userSuggestionSearchType">USER_TYPE</property>
        <property name="firstLabelField">username</property>
        <property name="hideFirstLabel">true</property>
        <property name="displayAction">view</property>
      </properties>
    </widget>

    <widget name="listing_article_consultation" type="listing_social_document_consultation">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>false</translated>
      <fields>
        <field>data</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="displayActions">true</property>
      </properties>
    </widget>

    <widget name="listing_news_consultation" type="listing_social_document_consultation">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>false</translated>
      <fields>
        <field>data</field>
      </fields>
      <widgetModes>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="displayActions">#{socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace()}</property>
      </properties>
    </widget>

    <widget name="social_workspace_group_members" type="template">
      <labels>
        <label mode="any">label.groupManager.userMembers</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">USER_TYPE</property>
      </properties>
    </widget>

    <widget name="social_workspace_bulk_import" type="template">
      <labels>
        <label mode="any">label.groupManager.groups</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">GROUP_TYPE</property>
      </properties>
    </widget>

    <widget name="required_description" type="textarea">
      <labels>
        <label mode="any">description</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:description</field>
      </fields>
      <properties widgetMode="edit">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="social_document_content" type="richtext_with_mimetype">
      <labels>
        <label mode="any">label.social.document.content</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>note:note</field>
        <field>note:mime_type</field>
      </fields>
      <properties mode="view">
        <property name="translatedHtml">
          #{noteActions.translateImageLinks(field_0)}
        </property>
      </properties>
    </widget>

    <widget name="social_request_permission" type="selectOneMenu">
      <fields>
        <field>data.docinfo.permission</field>
      </fields>
      <labels>
        <label mode="any">label.docinfo.permission</label>
      </labels>
      <selectOptions>
        <options itemLabel="#{messages[entry.label]}" itemValue="#{entry.value}" value="#{bulkImportSocialWorkspaceActions.rightsMenuEntries}" var="entry"/>
      </selectOptions>
    </widget>

    <widget name="user_request_accept" type="template">
      <labels>
        <label mode="any">command.userrequest.accept</label>
      </labels>
      <widgetModes>
        <mode value="any">#{currentUser.isAdministrator() || socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace() ? 'edit' : 'hidden'}</mode>
      </widgetModes>
      <fields>
        <field>data</field>
      </fields>
      <properties mode="any">
        <property name="template">/widgets/user_request_accept_widget_template.xhtml</property>
      </properties>
    </widget>

    <widget name="user_request_reject" type="template">
      <labels>
        <label mode="any">command.userrequest.reject</label>
      </labels>
      <widgetModes>
        <mode value="any">#{currentUser.isAdministrator() || socialWorkspaceActions.isCurrentUserAdministratorOfCurrentSocialWorkspace() ? 'edit' : 'hidden'}</mode>
      </widgetModes>
      <fields>
        <field>data</field>
      </fields>
      <properties mode="any">
        <property name="template">/widgets/user_request_reject_widget_template.xhtml</property>
      </properties>
    </widget>
  </extension>