This tutorial assumes that we have a repository Action available that can send emails with attachments. Tutorial implementation steps: Preparations for the Send-As-Email DocLib actionĪdd a project with a repository Action that can send emails with attachments. How to create a DocLib action that navigates to an external web page (Go-To-Google).How to create a DocLib action that invokes a custom repository web script (Call-Web-Script).How to create a DocLib action that invokes a custom JavaScript function and displays a message (Show-Custom-Message).How to create a DocLib action that uses the out-of-the-box onActionFormDialog JavaScript function to collect data from the user via a form and then call a repository action with this data (Send-As-Email).This tutorial will demonstrate the following: To try out the Send-As-Email DocLib action in this tutorial you will need to install a local SMTP server such This tutorial assumes you have created a new SDK All-In-One Surf Extension Modules work as we will be creating one of those. This tutorial assumes that you are familiar with the Document Library in Share. Very simple as we will see with our DocLib action example that navigates to the Google search home page. (Optionally) Implement any repository Action or repository web script that should be invoked by the actionĪs we can see, implementing a DocLib action can involve quite a few steps and take some time.onActionFormDialog - displays a form and then calls a Repo Action, onActionSimpleRepoAction - calls a Repo Action) Implement custom client side JavaScript code that should be called when action is invoked, or use one of the out-of-the-box JavaScript functions (e.g.(Optionally) Add a status indicator, can for example be used to show if an action has been applied to a content item.(Optionally) Add an evaluator if the action should be visible based on a condition, such as previously executed or not.(Optionally) Configure a form for the action if it requires input from the end-user, such as asking for email address, email subject, etc (typically in a Surf Extension Module).Configure where the action should be visible (typically in a Surf Extension Module).Configure the action so it is known to Share (typically in a Surf Extension Module). Look at how to create an action that displays an external Web page.Īdding a new DocLib action to the Document Library involves the following steps: The tutorial will also show how a web script can be called from a DocLib action in a an easy way. The email willīe sent by a custom repository Action that is invoked by an out-of-the-box JavaScript function. The implementation of thisĪction will make use of a form to collect the email data, such as where to send the email, subject, etc. The “Send-as-Email” action will be available for documents in Browse view and Details view. This tutorial will demonstrate how to add a DocLib action that can be used to send documents as attachments in an email. Work, which may require a custom repository Action or a custom repository web script. MostĪctions by their nature do something, and it’s likely that they will make a call back to the repository to perform their These actions are referred to as “DocLib” actions,Īnd unlike a lot of other functionality in Content Services, they do not use web scripts to implement theirīusiness logic, at least not directly, instead they hook into custom, or out-of-the-box, client-side JavaScript code.Įach action has a 16x16 icon, one or more text labels, and configuration to hook them into the Share application. And quite often this involvesĪdding new actions that can be applied to the content in the library. In many extension projects you want to customize the Document Library in Alfresco Share. These are tutorials for the Document Library in an Alfresco Share site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |