SlideShare a Scribd company logo
Alfresco Share 4.1
Custom Metadata
and Actions

Mike Farman
Objectives


•  Extend Share without deep knowledge of
   how Share is built
•  Avoid copy-paste of existing code
•  Simplify ungraded – avoid diff/merge
•  Easier Deployment
Customizing the Document Library


•  Metadata
•  Actions

… with configuration - no code
Custom Metadata Display


•  Control the metadata that is displayed in
 the Document List
  o    e.g. Title, Status, EXIF Props etc
•  Supports OOTB and custom model
   properties
•  Config driven, no coding required
  o    Optional Label
  o    Property only displayed if present on node
  o    Can use client-side JS for advanced rendering
Out-of-the-box Configuration
•  webapps/share/WEB-INF/classes/alfresco/
   share-documentlibrary-config.xml
     •  Templates




•  webapps/share/WEB-INF/classes/alfresco/
   slingshot-documentlibrary-context.xml
       •  Evaluators
Extend/Override

•  shared/classes/alfresco/web-extension
   share-config-custom.xml
   o  Override existing
   o  Add new templates

•  shared/classes/alfresco/web-extension
   custom-slingshot-context.xml
     •  Custom evaluators
Example Metadata Template

•  Config: shared/classes/alfresco/web-extension/
     share-config-custom.xml
•    Template ID: exif
•    Add line index 60 – exif_model with label




•  Evaluator
     o    Reusing evaluator.doclib.indicator.exifMetadata from the core
Document Library Actions


•  Simplified & consolidated config for actions
   available on the DocLib, DocDetails and
   FolderDetails pages
•  Single Configuration File for OOTB Actions
  o    share-documentlibrary-config.xml
•  Can be overridden via extensions
  o    Add New, Remove Existing, Change Order of UI Actions
  o    share-config-custom.xml
•  Actions Groups and Actions
  o    Similar approach to Explorer
Out-of-the-Box Actions & ActionGroups


•  Like metadata, OOTB Actions defined in:
  o    share/WEB-INF/classes/alfresco/share-documentlibrary-config.xml
•  <actions> section defines the individual actions
•  <actionGroups> defines where and the order in
  which they appear
  o    Note: Action must be in an ActionGroup to appear
•  Extend/Override in share-config-custom.xml i.e.:
  o    shared/classes/alfresco/web-extensions/share-config-custom.xml
  o    No need to copy full OOTB Action/ActionGroup definitions
Example: Removing Existing Actions


•  share-config-custom.xml                    Config applies to DocLibActions


                                               Start Workflow Action ID



                                                       disableAction Evaluator




     Upload New Version Action ID




                                              After:
                                    Before:
Adding New Actions

•  Configuration only, no coding required
•  2 types of action: Simple and Advanced
•  Simple Action: No user input (i.e. dialog)
   o    e.g. Extract Metadata
   o    Returns success or failure message
•  Advanced Action: User provides parameters for
  action
   o    e.g. Transform – Need to select target format and output location
   o    Uses Forms service define dialogs
         •  see share-form-config.xml for OOTB definitions
   o    Can plug in your own actions and forms
•  Can be used to execute the OOTB Actions or your
  own custom actions
Example New Action: Import ACP/ZIP

•  share-config-custom.xml   Action Definition




                               Form Definition
                               - Select destination for extracted files
Controlling when actions are available


•  Evaluators
  o    Control display of actions based on context e.g.
        •  Type, Aspect, Property, Site, Mimetype etc
•  Can use OOTB evaluators or define your
   own
•  Chain them together, all need to evaluate
   to true
•  See slingshot-documentlibrary-context.xml
   for OOTB evaluators
Action Types


•  Three main action types:
  o    “link” – external link or link to content
  o    “pagelink” – to another Share page (e.g. details)
  o    “javascript” – client-side action
        •  onActionSimpleRepoAction
           e.g. Simple Workflow approve/reject
        •  onActionFormDialog
           e.g. Transform (to image), Run Action
Example: Mimetype Evaluator


•  Only show Import for ACP/ZIP files
  o    share-config-custom.xml




  o    custom-slingshot-context.xml
Further Reading


•  Mike Hatfield's blog: Share Document
 Library Extensions in v4.0:
  http://blogs.alfresco.com/wp/developer/2011/09/26/share-document-
  library-extensions-in-v4-0/

•  Forms:
  http://wiki.alfresco.com/wiki/Forms

•  Forms Developer Kit:
  http://wiki.alfresco.com/wiki/Forms_Development_Kit#Form_Console

•  Custom Models:
  http://wiki.alfresco.com/wiki/
  Data_Dictionary_Guide#Step_by_Step_Model_Definition

More Related Content

PPTX
Customizing the Document Library
PDF
CUST-1 Share Document Library Extension Points
DOC
( 12 ) Office 2007 Features Custom List
PPTX
Introduction to the SharePoint 2013 REST API
PPTX
Data Access Options in SharePoint 2010
PDF
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
PPTX
Advanced SharePoint Web Part Development
PPTX
SharePoint 2010 Client-side Object Model
Customizing the Document Library
CUST-1 Share Document Library Extension Points
( 12 ) Office 2007 Features Custom List
Introduction to the SharePoint 2013 REST API
Data Access Options in SharePoint 2010
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
Advanced SharePoint Web Part Development
SharePoint 2010 Client-side Object Model

What's hot (20)

DOCX
SharePoint 2013 REST API & Remote Authentication
PPTX
SharePoint 2010 Application Development Overview
PPTX
Introduction to using jQuery with SharePoint
PDF
Taking Advantage of the SharePoint 2013 REST API
PPTX
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
PPTX
Introduction to SharePoint 2013 REST API
DOCX
Working With Sharepoint 2013 Apps Development
PDF
Integrating Plone with E-Commerce and Relationship Management: A Case Study i...
PPTX
Design and Development performance considerations
PDF
JavaScript and jQuery for SharePoint Developers
PDF
Javascript Application Architecture with Backbone.JS
PPTX
SPTechCon - Share point and jquery essentials
PPTX
Understanding and programming the SharePoint REST API
PPTX
SharePoint 2013 APIs
PDF
Who Are You and What Do You Want? Working with OAuth in SharePoint 2013.
PPTX
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
PPTX
SharePoint and jQuery Essentials
PDF
OpenCms Days 2015 Advanced Solr Searching
PDF
Asp.net By Durgesh Singh
SharePoint 2013 REST API & Remote Authentication
SharePoint 2010 Application Development Overview
Introduction to using jQuery with SharePoint
Taking Advantage of the SharePoint 2013 REST API
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Introduction to SharePoint 2013 REST API
Working With Sharepoint 2013 Apps Development
Integrating Plone with E-Commerce and Relationship Management: A Case Study i...
Design and Development performance considerations
JavaScript and jQuery for SharePoint Developers
Javascript Application Architecture with Backbone.JS
SPTechCon - Share point and jquery essentials
Understanding and programming the SharePoint REST API
SharePoint 2013 APIs
Who Are You and What Do You Want? Working with OAuth in SharePoint 2013.
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
SharePoint and jQuery Essentials
OpenCms Days 2015 Advanced Solr Searching
Asp.net By Durgesh Singh
Ad

Viewers also liked (20)

PDF
DASH - Josh Curtis - Dominating Influencer Marketing for Mobile Games - Chart...
PPT
тру
PPTX
Mkt content Mercado
PPTX
Loan Point- A Reliable Hub of Money Lending
PPTX
Brooklyn college names business school in honor of alumnus
PPTX
Consejos para la lectura
PDF
RCDC_Evans_Ave - Sheet - A101 - LIGHTING PLAN
PDF
Analisis arquitectonico y estudio de medio geografico del sitio arqueologico ...
PPT
21 1402262356 15_15_omn
PDF
SparkLabs Global Wireless Industry Overview 2014
PDF
Mapping Human-Centric Product Vision (ProductCamp Boston 2016)
PPTX
Power of LinkedIn Lookup: finding hidden talent in your organization | Talent...
PPTX
2014 Qoppa Software PDF Solutions
PDF
Chemistry Connect
PPTX
Bianco toro
PPTX
Business Administration Studies at Brooklyn College
PPTX
презентация Microsoft office power point
PPT
PPSX
PDF
CDC International Logistics - Company and Service Introduction
DASH - Josh Curtis - Dominating Influencer Marketing for Mobile Games - Chart...
тру
Mkt content Mercado
Loan Point- A Reliable Hub of Money Lending
Brooklyn college names business school in honor of alumnus
Consejos para la lectura
RCDC_Evans_Ave - Sheet - A101 - LIGHTING PLAN
Analisis arquitectonico y estudio de medio geografico del sitio arqueologico ...
21 1402262356 15_15_omn
SparkLabs Global Wireless Industry Overview 2014
Mapping Human-Centric Product Vision (ProductCamp Boston 2016)
Power of LinkedIn Lookup: finding hidden talent in your organization | Talent...
2014 Qoppa Software PDF Solutions
Chemistry Connect
Bianco toro
Business Administration Studies at Brooklyn College
презентация Microsoft office power point
CDC International Logistics - Company and Service Introduction
Ad

Similar to Alfresco tech talk live share extensibility metadata and actions for 4.1 (20)

PDF
Tech Talk Live on Share Extensibility
PDF
Alfresco Template Feb 2011
PDF
CUST-2 New Client Configuration & Extension Points in Share
PPTX
Salesforce winter 16 release
PPTX
SFDC Deployments
PPTX
Alfresco Template Feb 2011
PDF
LFC DjangoCon EU
PPTX
Using the Corporate Geographic Data Model with Subversion
PDF
CUST-3 Document Management with Share
PPTX
Necto 16 training 17 - administration
PDF
Actions rules and workflow in alfresco
PPTX
Installing OpenCart 3 module
PPTX
SSIS : Ftp and script task
PPTX
Git Going w/ Git
PDF
11 Trng8_WorkflowAdministration.pdf
PPTX
Migrating very large site collections
PPTX
AngularJS
PPTX
Joomla Modules with Permissions and Front-End Editing
PDF
AtoM feature development
PDF
UKLUG 2012 - XPages, Beyond the basics
Tech Talk Live on Share Extensibility
Alfresco Template Feb 2011
CUST-2 New Client Configuration & Extension Points in Share
Salesforce winter 16 release
SFDC Deployments
Alfresco Template Feb 2011
LFC DjangoCon EU
Using the Corporate Geographic Data Model with Subversion
CUST-3 Document Management with Share
Necto 16 training 17 - administration
Actions rules and workflow in alfresco
Installing OpenCart 3 module
SSIS : Ftp and script task
Git Going w/ Git
11 Trng8_WorkflowAdministration.pdf
Migrating very large site collections
AngularJS
Joomla Modules with Permissions and Front-End Editing
AtoM feature development
UKLUG 2012 - XPages, Beyond the basics

More from Alfresco Software (20)

PPTX
Alfresco Day Benelux Inholland studentendossier
PPTX
Alfresco Day Benelux Hogeschool Inholland Records Management application
PPTX
Alfresco Day BeNelux: Customer Success Showcase - Saxion Hogescholen
PPTX
Alfresco Day BeNelux: Customer Success Showcase - Gemeente Amsterdam
PPTX
Alfresco Day BeNelux: The success of Alfresco
PDF
Alfresco Day BeNelux: Customer Success Showcase - Credendo Group
PDF
Alfresco Day BeNelux: Digital Transformation - It's All About Flow
PDF
Alfresco Day Vienna 2016: Activiti – ein Katalysator für die DMS-Strategie be...
PDF
Alfresco Day Vienna 2016: Elektronische Geschäftsprozesse auf Basis von Alfre...
PDF
Alfresco Day Vienna 2016: Alfrescos neue Rest API
PDF
Alfresco Day Vienna 2016: Support Tools für die Admin-Konsole
PDF
Alfresco Day Vienna 2016: Entwickeln mit Alfresco
PDF
Alfresco Day Vienna 2016: Activiti goes enterprise: Die Evolution der BPM Sui...
PDF
Alfresco Day Vienna 2016: Partner Lightning Talk: Westernacher
PDF
Alfresco Day Vienna 2016: Bringing Content & Process together with the App De...
PDF
Alfresco Day Vienna 2016: Partner Lightning Talk - it-novum
PDF
Alfresco Day Vienna 2016: How to Achieve Digital Flow in the Enterprise - Joh...
PDF
Alfresco Day Warsaw 2016 - Czy możliwe jest spełnienie wszystkich regulacji p...
PDF
Alfresco Day Warsaw 2016: Identyfikacja i podpiselektroniczny - Safran
PDF
Alfresco Day Warsaw 2016: Advancing the Flow of Digital Business
Alfresco Day Benelux Inholland studentendossier
Alfresco Day Benelux Hogeschool Inholland Records Management application
Alfresco Day BeNelux: Customer Success Showcase - Saxion Hogescholen
Alfresco Day BeNelux: Customer Success Showcase - Gemeente Amsterdam
Alfresco Day BeNelux: The success of Alfresco
Alfresco Day BeNelux: Customer Success Showcase - Credendo Group
Alfresco Day BeNelux: Digital Transformation - It's All About Flow
Alfresco Day Vienna 2016: Activiti – ein Katalysator für die DMS-Strategie be...
Alfresco Day Vienna 2016: Elektronische Geschäftsprozesse auf Basis von Alfre...
Alfresco Day Vienna 2016: Alfrescos neue Rest API
Alfresco Day Vienna 2016: Support Tools für die Admin-Konsole
Alfresco Day Vienna 2016: Entwickeln mit Alfresco
Alfresco Day Vienna 2016: Activiti goes enterprise: Die Evolution der BPM Sui...
Alfresco Day Vienna 2016: Partner Lightning Talk: Westernacher
Alfresco Day Vienna 2016: Bringing Content & Process together with the App De...
Alfresco Day Vienna 2016: Partner Lightning Talk - it-novum
Alfresco Day Vienna 2016: How to Achieve Digital Flow in the Enterprise - Joh...
Alfresco Day Warsaw 2016 - Czy możliwe jest spełnienie wszystkich regulacji p...
Alfresco Day Warsaw 2016: Identyfikacja i podpiselektroniczny - Safran
Alfresco Day Warsaw 2016: Advancing the Flow of Digital Business

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Electronic commerce courselecture one. Pdf
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf

Alfresco tech talk live share extensibility metadata and actions for 4.1

  • 1. Alfresco Share 4.1 Custom Metadata and Actions Mike Farman
  • 2. Objectives •  Extend Share without deep knowledge of how Share is built •  Avoid copy-paste of existing code •  Simplify ungraded – avoid diff/merge •  Easier Deployment
  • 3. Customizing the Document Library •  Metadata •  Actions … with configuration - no code
  • 4. Custom Metadata Display •  Control the metadata that is displayed in the Document List o  e.g. Title, Status, EXIF Props etc •  Supports OOTB and custom model properties •  Config driven, no coding required o  Optional Label o  Property only displayed if present on node o  Can use client-side JS for advanced rendering
  • 5. Out-of-the-box Configuration •  webapps/share/WEB-INF/classes/alfresco/ share-documentlibrary-config.xml •  Templates •  webapps/share/WEB-INF/classes/alfresco/ slingshot-documentlibrary-context.xml •  Evaluators
  • 6. Extend/Override •  shared/classes/alfresco/web-extension share-config-custom.xml o  Override existing o  Add new templates •  shared/classes/alfresco/web-extension custom-slingshot-context.xml •  Custom evaluators
  • 7. Example Metadata Template •  Config: shared/classes/alfresco/web-extension/ share-config-custom.xml •  Template ID: exif •  Add line index 60 – exif_model with label •  Evaluator o  Reusing evaluator.doclib.indicator.exifMetadata from the core
  • 8. Document Library Actions •  Simplified & consolidated config for actions available on the DocLib, DocDetails and FolderDetails pages •  Single Configuration File for OOTB Actions o  share-documentlibrary-config.xml •  Can be overridden via extensions o  Add New, Remove Existing, Change Order of UI Actions o  share-config-custom.xml •  Actions Groups and Actions o  Similar approach to Explorer
  • 9. Out-of-the-Box Actions & ActionGroups •  Like metadata, OOTB Actions defined in: o  share/WEB-INF/classes/alfresco/share-documentlibrary-config.xml •  <actions> section defines the individual actions •  <actionGroups> defines where and the order in which they appear o  Note: Action must be in an ActionGroup to appear •  Extend/Override in share-config-custom.xml i.e.: o  shared/classes/alfresco/web-extensions/share-config-custom.xml o  No need to copy full OOTB Action/ActionGroup definitions
  • 10. Example: Removing Existing Actions •  share-config-custom.xml Config applies to DocLibActions Start Workflow Action ID disableAction Evaluator Upload New Version Action ID After: Before:
  • 11. Adding New Actions •  Configuration only, no coding required •  2 types of action: Simple and Advanced •  Simple Action: No user input (i.e. dialog) o  e.g. Extract Metadata o  Returns success or failure message •  Advanced Action: User provides parameters for action o  e.g. Transform – Need to select target format and output location o  Uses Forms service define dialogs •  see share-form-config.xml for OOTB definitions o  Can plug in your own actions and forms •  Can be used to execute the OOTB Actions or your own custom actions
  • 12. Example New Action: Import ACP/ZIP •  share-config-custom.xml Action Definition Form Definition - Select destination for extracted files
  • 13. Controlling when actions are available •  Evaluators o  Control display of actions based on context e.g. •  Type, Aspect, Property, Site, Mimetype etc •  Can use OOTB evaluators or define your own •  Chain them together, all need to evaluate to true •  See slingshot-documentlibrary-context.xml for OOTB evaluators
  • 14. Action Types •  Three main action types: o  “link” – external link or link to content o  “pagelink” – to another Share page (e.g. details) o  “javascript” – client-side action •  onActionSimpleRepoAction e.g. Simple Workflow approve/reject •  onActionFormDialog e.g. Transform (to image), Run Action
  • 15. Example: Mimetype Evaluator •  Only show Import for ACP/ZIP files o  share-config-custom.xml o  custom-slingshot-context.xml
  • 16. Further Reading •  Mike Hatfield's blog: Share Document Library Extensions in v4.0: http://blogs.alfresco.com/wp/developer/2011/09/26/share-document- library-extensions-in-v4-0/ •  Forms: http://wiki.alfresco.com/wiki/Forms •  Forms Developer Kit: http://wiki.alfresco.com/wiki/Forms_Development_Kit#Form_Console •  Custom Models: http://wiki.alfresco.com/wiki/ Data_Dictionary_Guide#Step_by_Step_Model_Definition