Você está na página 1de 26

Enterprise 4.

Using the AVM

Contents
Using the AVM...........................................................................................................................3 Setting up a Web Project.................................................................................................... 3 Creating a web form....................................................................................................3 Creating a web project................................................................................................ 4 Working with Web Project Content..................................................................................... 8 Viewing a web project and its contents.......................................................................8 Adding content to a web project................................................................................. 9 Maintaining web project content................................................................................12 Publishing a Web Project.................................................................................................. 19 Deploying a snapshot................................................................................................ 19 Rolling back to a previous snapshot......................................................................... 21 Maintaining web forms...................................................................................................... 22 Editing a web form.................................................................................................... 22 Deleting a web form.................................................................................................. 23 Maintaining a web project................................................................................................. 23 Editing the web project settings................................................................................ 23 Inviting users to a web project.................................................................................. 24 Deleting a sandbox from a web project.................................................................... 25 Deleting a web project...............................................................................................25 WCM roles and tasks........................................................................................................ 26

2 Enterprise 4.0

Using the AVM

Using the AVM


Todays websites are becoming more and more complex with greater amounts of dynamic content, interactivity, and user-generated content. Companies are looking for web infrastructure solutions that are: Flexible to customize by web application developers Easy to update by business users with content tools they already use Integrated with full business process support and audit capability Scalable to support large quantities of content and high numbers of users This end user online help describes how to use Alfresco WCM functionality with the Alternative Versioning Model (AVM).

Setting up a Web Project


To set up an Alfresco web project, you must set up web forms and a web project.

Creating a web form


A web form is a form created by a web developer for use in web projects. The web form is used by a Content Contributor to capture content and store it as XML content in the repository. Web forms enable Content Contributors to create structured XML content based on an XML schema (XSD). When configured with one or more rendering engine templates, a web form can generate multiple renditions of the XML content (for example, HTML and PDF). There are three main steps involved in creating a web form: Specify general properties, including the XML schema to describe the XML content being collected and output path patterns that will be used when writing form content to the repository. Select and configure one or more rendering engine templates to use for generating renditions of the XML content collected. Select a default workflow to use when content generated by this form is submitted. You can create a web form within the Web Forms space (Company Home > Data Dictionary > Web Forms), which is created automatically when you install WCM 2.1. You can also perform this task as part of creating a web project. 1. Navigate to the Web Forms space (Company Home > Data Dictionary > Web Forms). 2. In the Create menu, click Create Web Form. The Create Web Form Wizard opens. 3. In Step One, Web Form Details, provide information about the web form you want to create, as follows. a. To the right of the Schema box, click Browse to locate and upload the desired XML schema file. This file will have the extension XSD. Upon selecting the XML schema file, several fields are populated with default values. Edit the Root element, Name, and Title values as desired. Enter a Description for the web form, if desired. Enter the Output path pattern to use when saving content generated from this web form.

b. c. d.

Using the AVM 3

Using the AVM

Click for guidelines on specifying this pattern. For more information, refer to http:// wiki.alfresco.com/wiki/WSF. 4. Click Next. 5. In Step Two, Configure Templates, select and configure one or more rendering engine templates, if required, for the form being created. a. To the right of the Rendering Engine Template File box, click Browse to locate and upload the desired template file. This file will have the extension XSL. Selecting the XML schema file populates some fields with default values. Ensure the correct value is set for the Rendering Engine: for an FTL template file (plain text output), select FreeMarker; for an XSL template file (HTML file output), select XSLT; for an XSL-FO template file (XML file output), select XSL-FO. Edit the Title as desired. Enter a Description for the rendering engine template file. In the Rendition mimetype list, select how the web form content is to be rendered. Enter the Output path pattern to use when saving content generated from this web form. Click g. h. for guidelines on specifying this pattern.

b.

c. d. e. f.

Click Add to List to add the template. Repeat this process to add and configure another template, if desired.

6. Click Next when all templates are added. 7. In Step Three, Configure Workflow, specify the default workflow for the web form being created, if desired. Configure workflow for a web form if you want the form to have the same workflow each time it is used in a web project. If you plan to use the web form in different projects that may require different workflows, you may want to configure the workflow when you create the web project, rather than specifying it for the web form itself. To select a default workflow, click Yes and select the desired workflow in the list provided. Click No not now to configure the workflow when creating a web project. 8. Click Next. 9. In Step Four, Summary, review the information and click Finish to create the web form as specified. The new web form appears as a space in the Web Forms space.

Creating a web project


You create a web project using the Create Web Project Wizard. The wizard automates the creation of a source repository, called a Staging Sandbox, and a set of development repositories, called user sandboxes. The number of user sandboxes created corresponds to the number of users invited to work on the web project. There are seven main steps involved in creating a web project: Specify basic web project details Indicate if you are creating a new project or using the structure of an existing project Configure deployment servers Select and configure the web forms to be used with this project for generating web content

4 Enterprise 4.0

Using the AVM

Configure workflow for content added to this project that is not generated by a web form Select the users who will work on the web project and assign user roles to them Email a notification to the invited users You can set up the entire web project at once or do it in stages. Only the first two steps are required; once you complete these, you can save the web project. The Web Projects space is created automatically when you install WCM 2.1. 1. Navigate to the Web Projects space (Company Home > Web Projects). 2. In the Create menu, click Create Web Project. The Create Web Project Wizard opens. 3. In Step One, Web Project Details, enter the basic web project details as follows. a. Provide a Name and DNS name. Both entries are required. The entry in the Name box will be displayed in the repository as the project name. The DNS name provided will be used by the virtualization server to preview and test the website or web application contained within the web project. The DNS name must be alphanumeric only and cannot contains spaces. b. c. d. Enter a Title and Description for the web project, if desired. Select the check box Use as a template? to indicate this web project can be used as a template when creating a new web project. In the Preview Provider list, select the desired method for previewing this web project.

4. Click Next. 5. In Step Two, Create From Existing Web Project, specify if you are creating a new empty project or if you are basing the new project on an existing web project. You can base your web project on any existing project, whether or not it has been specified as a template for web projects. When you do this, the web forms, workflow, users, and Staging Sandbox structure configured for the selected web project are copied to the web project being created. To create the web project from scratch, select Create a new empty Web Project. To base the new web project on an existing project, select Create a Web Project based on an existing one. In the list of template web projects, select the web project on which you want to base the new project. If the desired project does not appear, click Show All Web Projects beneath the list and then make your selection. 6. Click Next. 7. In Step Three, Configure Deployment Receivers, specify the deployment receiver(s) for this web project. You can specify multiple receivers in this step. a. b. Click Add Deployment Receiver. Provide the server details. The Host and Port are required. The Host is the host name of the destination server, which can be a name or an IP address. The Port is the RMI port on the destination server that you want to connect to. The default values are 44100 for a standalone deployment engine and 50500 for a repository backed deployment engine. c. d. Click Add. Configure additional receivers in the same manner, as necessary.

Using the AVM 5

Using the AVM

8. In Step Four, Configure Web Content Forms, click Add to List to the right of the web form you want to use with this web project. The Select Web Forms list displays the available web forms. To create a new web form, click Create Web Form beneath the list. The new web form will be added to the Select Web Forms list. It is also added in the Web Forms space (Company Home > Data Dictionary > Web Forms). 9. In the Selected Web Content Forms section, click Web Form Details and follow these steps to edit details of the selected web form for the current web project. The default values displayed were set when the web form was created. Configuring a web form within a web project does not affect the original form located in the Web Forms space. a. Edit the Output path pattern as necessary. This is the path to use when saving content generated by the web form. Click b. c. 10. for guidelines on specifying this pattern.

In the Workflow list, select the desired default workflow if you want content generated from this web form to follow a review procedure. Click OK to save the updated details.

In the Selected Web Content Forms section, click Configure Workflow and follow these steps to configure the workflow defaults for this web form within the current web project. If the selected web form has a default workflow specified, the icon is displayed and the Configure Workflow button is enabled, indicating that you must configure the workflow. Note that the Configure Workflow feature allows you to configure workflow for a specific web form within the web project; this does not configure workflow for the web project as a whole. a. In the Type of Review list, select Serial or Parallel. Select Serial to allow only one reviewer to review the file at a time. Once the first review is complete, the file is passed to the next reviewer in the chain. Select Parallel to allow several reviewers to review the file simultaneously. In a parallel review, the content is read-only for the reviewers. You must select Serial to allow the reviewers to edit the content themselves. b. In the search box, type the full or partial name of the user you want to add and click Search. Leave the search box empty and click Search to return a list of all users. Selecting to display all users may take some time if there are many users in the system. c. In the results list, click to select the user to add and click Add to List. If the review is to be serial, you must add the users in the order in which you wish them to perform the review. If the review is to be parallel, the order does not matter. In this case, use SHIFT to select multiple, consecutive users from the list and use CTRL to select multiple, non-consecutive users. d. Repeat this process to add all desired users to the list. Click e. (Remove) to remove a user from the list.

Click OK to save the updated details.

11.

In the Selected Web Content Forms section, click Configure Templates and follow these steps to configure the rendering engine templates to use for this web form within the current web project.

6 Enterprise 4.0

Using the AVM

You perform this step only when the selected web form is associated with one or more templates. a. b. Click Add to List to the right of the template you want to associate with the web form for this web project. For this template in the Selected Templates list, edit the Output path pattern as necessary. This is the path to use when saving content generated by the web form. Click Click c. 12. for guidelines on specifying this pattern. (Remove) to remove a template from the list.

Click OK to save the template configuration for the web form.

While still in Step Four of the Create Web Project Wizard, add and configure additional web forms for this web project in the same manner, if desired. To remove a web form from the web project, click (Remove).

13. 14.

Click Next once all web forms are configured for this web project. In Step Five, Configure Workflow, click Add to List to the right of the workflow you want to select and configure for this web project as a whole. The workflow defined in this step will be applied to all content not generated by forms, as well as form-generated content without a defined workflow. You can add the Web Site Submission workflow any number of times in this step. For each instance of the workflow added, you can configure a different chain of reviewers. If you modify the pattern match in the Filename pattern match box, you can allow each reviewer to review different sections of the website or different types of content. For example, you could assign one user the task of reviewing content under /assets and another user the task of reviewing content under /products. The workflow is added to the Selected Workflows list on this page. The icon that you must configure the workflow. indicates

15.

Click Configure Workflow and perform these steps to configure the workflow defaults for the current web project. a. In the Type of Review list, select Serial or Parallel. Select Serial to allow only one reviewer to review the file at a time. Once the first review is complete, the file is passed to the next reviewer in the chain. Select Parallel to allow several reviewers to review the file simultaneously. In a parallel review, the content is read-only for the reviewers. You must select Serial to allow the reviewers to edit the content themselves. b. In the search box, type the full or partial name of the user you want to add and click Search. Leave the search box empty and click Search to return a list of all users. Selecting to display all users may take some time if there are many users in the system. c. In the results list, click to select the user to add and click Add to List. If the review is to be serial, you must add the users in the order in which you wish them to perform the review. If the review is to be parallel, the order does not matter. In this case, use SHIFT to select multiple, consecutive users from the list and use CTRL to select multiple, non-consecutive users. d. Repeat this process to add all desired users to the list. Click (Remove) to remove a user from the list.

Using the AVM 7

Using the AVM

e.

Specify a value in the Filename pattern match box. The default is .* indicating that any web project file not generated from a web form will pass through the defined review process.

f.

Click OK to save the workflow settings. In Step Five, Configure Workflow, click project. (Remove) to remove a workflow from the

16. 17.

Click Next. In Step Six, Add Users, follow these steps to select the users for this web project and assign roles to them. If you are creating the web project based on an existing project, the users and their roles may already be assigned. Each user invited to a web project is given a sandbox for web content development. a. Select Users or Groups. In the search box, type the full or partial name of the user/ group you want to add and click Search. You must enter a minimum of two (2) characters. b. In the Results list, click to select the users/groups to invite. Use SHIFT to select multiple, consecutive items; use CTRL to select multiple, nonconsecutive items. Select multiple users/groups only when you want to assign them the same role. c. d. In the Role list, click a role for the selected user(s)/group(s). Click Add to List. Click e. (Remove) to remove a user from the list.

Add additional invitees in the same manner, as required.

18. 19.

Click Next once all users/groups have been added. In Step Seven, Email Users, choose one of the following options: Click No if you do not want the invited users to be notified of the invitation by email. Click Yes if you want the invited users to be notified of the invitation by email, then complete the Subject and Message boxes. You can write your own message, or select a template from the User Template menu and click Insert Template.

20. 21.

Click Next. In Step Eight, Summary, review the information and click Finish to create the web project as specified. The new web project appears in the Web Projects space.

Working with Web Project Content


Once a project has been set up, you can view, add, edit, and manage the web project content.

Viewing a web project and its contents


There are various views available within a web project, each view providing a different level of information and allowing a specific set of actions to be performed. The jumping off point for each view is the Web Projects space (Company Home > Web Projects).

Viewing the web project details


The Web Project Details page displays the web project properties.

8 Enterprise 4.0

Using the AVM

You can access this view from either the Web Projects space or the Sandbox view. 1. Use one of the following two methods to navigate to the Web Projects space (Company Home > Web Projects) to display the existing web projects. Click (View Details) for the web project of interest in the Browse Spaces pane.

Click the name of the web project you want to view to display the Sandbox view. In the Actions menu, click View Details. 2. Click Close.

Displaying the Sandbox view


Each user associated with a web project has their own space, called a sandbox, which contains the existing web project content. Within the sandbox the user manages the content independently from changes made by other users. The sandboxes available for you to view depend upon your assigned role. Content Managers and Content Publishers can view the Staging Sandbox, their own sandbox, and all user sandboxes. Content Contributors and Content Reviewers see only the Staging Sandbox and their own sandbox. Your personal sandbox is labelled My Sandbox. By default, only the Staging Sandbox and your user sandbox appear in the Sandbox view. When available, select the option Show All Sandboxes in this view to display all sandboxes available to you. 1. Use one of the following two methods to navigate to the Web Projects space (Company Home > Web Projects) to display the existing web projects. Click (View Details) for the web project of interest in the Browse Spaces pane.

Click the name of the web project you want to view to display the Sandbox view. In the Actions menu, click View Details. 2. In the Browse Spaces pane, click the name of the web project you want to view. Alternately, click to the left of the desired web project.

Viewing the sandbox contents


Within a sandbox, the web project files are organized in folders. The sandbox displays all website or web application content. The actions available within your personal sandbox depend upon your assigned role. At any time, click the web project name in the breadcrumb path to return to the Sandbox view. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click Browse Website in the pane of the sandbox whose contents you want to view. Alternately, click in the Staging Sandbox to view the contents of that sandbox; click

in a user sandbox to view the contents of that sandbox. As you navigate the folder structure in the Browse Folders pane, a navigation path is displayed beneath the space header indicating your current location. Click any folder in the path to step back to that view.

Adding content to a web project


Just as in a standard Alfresco space, there are multiple methods of adding and creating content for a web project.

Using the AVM 9

Using the AVM

In addition to creating web content within a project, you can upload individual files from your computer and perform a bulk import. To help organize your website or web application content, you can create folders as needed.

Creating web content


Within a web project, you can create XML, HTML, and Plain Text web content. Use a web form associated with the project to create XML web content using the Create Web Content Wizard. The resulting content is saved to a path specified within the web form configuration. If you override the web form selection to create HTML or Plain Text content, the resulting file will be saved to the root directory of the web project. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In your user sandbox (My Sandbox), open the Create Web Content Wizard in one of the following two ways: Click to expand the Web Forms list, which displays the available web forms. Click Create Content for the web form you want to use to create the content. Click or Browse Website to display the sandbox contents. In the Create menu, click Create Web Content. The Create Web Content Wizard opens. 3. In Step One, Web Content Details, enter the general properties for the web content being created. a. b. c. Enter a name for the file in the Name box. Leave the Type as Content. In the Content Type list, select the type of content you want to create: HTML, Plain Text, or XML. If there is no web form associated with the web project, only the options HTML and Plain Text are available. If a web form is associated with the project, selecting HTML or Plain Text overrides the web form selection. The resulting file does not follow workflow rules configured for the specified web form and the file is saved to the root project directory. d. In the Web Form list, select the web form to use to create/generate the web content. The message No Web Forms available is displayed if web forms have not been specified for this web project. When you start the Create Web Content Wizard from the Web Forms list in the Sandbox view, the Web Form list defaults to the selected web form and is not editable. 4. Click Next. 5. In Step Two, Author Web Content, enter your content. The fields and controls presented in this step are dictated by the selected web form. If a web form is not available, enter your content in the editing area provided. The symbol indicates that an entry is required. Some controls display a set of icons along the bottom edge of their panel. Use these controls as follows:

10 Enterprise 4.0

Using the AVM

add a duplicate empty field immediately beneath the current one move the content from the current field to the one immediately above move the content from the current field to the one immediately below delete the field, including its contents 6. Click Next. 7. In Step Three, Summary, select Submit [content name] when wizard finishes if you no longer intend to work on this content item and wish to immediately submit it. When workflow is defined, selecting this option submits the content for review. In this case, the content is available only for preview until approved or rejected. If workflow is defined for both the form and the project, the form workflow is followed. When no workflow is defined, the content is submitted to the Staging Sandbox. If you choose not to submit the content as part of the edit process, you can initiate the submit process separately. See Submitting content items on page 16. To view the new content before finalizing the task, click 8. Click Finish. If you clicked the Submit check box on the Summary page, the Submit Items page is displayed. See Submitting content items on page 16 for details on completing this page. When the submit action is not selected, you return to the Sandbox view. The Modified Items list in My Sandbox displays the newly created web content. .

Uploading content from your computer


The basic process for uploading a file from your computer into a web project is the same as when uploading content to a standard Alfresco space. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click or Browse Website in your user sandbox (My Sandbox) to display the contents of the sandbox. 3. Within your sandbox, navigate to the folder to which you want to upload the file. 4. In the Create menu, click Add Content. 5. On the Add Content page, click Browse. 6. Locate the file on your computer that you want to upload and click Open. A message informs you that your upload was successful. 7. Verify the General Properties information and click OK. The uploaded content appears in the Browse Files pane. 8. Return to the Sandbox view and click The newly added content is displayed. to expand the Modified Items list in My Sandbox.

Importing content
Once created, a new web project contains no content. Use the Bulk Import feature to quickly import content to populate your web project.

Using the AVM 11

Using the AVM

This feature enables you to import a WAR or ZIP file into a user sandbox. Importing the file into the specified location expands the package to its original structure. Existing content in the sandbox is not overwritten. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click or Browse Website of the user sandbox into which you want to import a file. This displays the contents of the selected user sandbox. 3. In the Create menu, click Bulk Import. The Bulk Import page appears. 4. Click Browse and locate the file you want to import. 5. Select the desired file and click Open. The uploaded file is displayed in the Uploaded Content box. 6. Select the option ZIP file contains high-byte filename characters such as Japanese, Chinese or Korean if applicable. 7. Confirm this is the file to upload and click OK. The import may take several minutes. Once complete, the Bulk Import page closes and the sandbox displays the imported content.

Creating a folder
Within a web project, use folders to store and organize your web content. Create the folders within your personal sandbox as you need them. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click or Browse Website in your user sandbox (My Sandbox) to display the sandbox contents. 3. In the Browse Folders pane, navigate the folder structure as necessary until the header displays the name of the folder in which you want to create a new folder. 4. In the Create menu, click Create Folder. 5. On the Create Folder page, type the relevant folder information. 6. Click OK. The Browse Folders pane displays the newly created folder.

Maintaining web project content


Within a web project, you have your own space, called a sandbox, where you can work with your website or web application content. In WCM, you do not need to check out content in order to work with it. When you create, import, modify, or delete a content item, Alfresco automatically locks the item to prevent editing clashes. The lock icon displaying a padlock with a key ( ) indicates that you, the currently logged in user, own that lock and are permitted to perform actions on it, including edit, submit, or undo (revert) changes to that item. The lock icon displaying only a padlock ( ) indicates that the content item is currently non-editable as it is owned by another user. In this case, the Edit and Delete buttons are removed from the Actions list. A convenient tooltip displays the user who currently owns the lock. When another user owns a lock, a limited set of actions are available to you. When a locked content item needs to be made available to another user and the owner is unavailable to release the lock, a Content Manager or Administrator can unlock ( ) the

12 Enterprise 4.0

Using the AVM

item in the user sandbox. Use this feature carefully as it does present an opportunity for conflicting edits on that item. A content item under editorial review and until approved or rejected is available only for preview. Content items promoted to editorial review remain in the Modified Items list of the user sandbox but are locked. In this case, those items can be edited only in the context of the review or edit task itself. This prevents any user making modifications to the content underneath the reviewer.

Editing web content


The Edit Web Content Wizard enables you to edit the content created by a web form within the same form that was used to create the content. When you save the edits, the web form renditions, if applicable, are automatically regenerated and saved. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Use one of the following methods to locate the content item you want to edit: In your user sandbox (My Sandbox), click to expand the Modified Items list.

In your user sandbox (My Sandbox), click to expand the Web Forms list. Click Browse Content to display a list of all content items within the web project that were generated from the associated web form. Click (Browse Website) for your personal sandbox in the User Sandboxes pane. In the sandbox, navigate the folder structure to locate the content item. 3. Click (Edit) for the content item of interest.

The Edit Web Content Wizard opens. 4. In Step One, Author Web Content, make changes to the content as required. 5. Click Next. 6. In Step Two, Summary, review the content. If all work on this content is complete, select the Submit option to immediately submit the updated content. When workflow is defined, selecting this option submits the content for review. In this case, the content is available only for preview until approved or rejected. If workflow is defined for both the form and the project, the form workflow is followed. When no workflow is defined, the content is promoted to the Staging Sandbox. If you choose not to submit the content as part of the edit process, you can initiate the submit process separately. See Submitting content items on page 16. To view the updated content before finalizing the task, click 7. Click Finish. The content item and its renditions, if applicable, are updated and displayed in the Modified Items list. .

Editing content not generated from a web form


Content items not generated from a web formcontent that was uploaded or imported, or HTML and plain text documents created within the projectmust be edited locally on your computer. Inline editing of HTML and plain text documents is not available within web projects. 1. In the web project, locate the content item you want to edit. 2. Click (Edit) for that item.

3. Follow the directions on the page displayed to save the file to your computer.

Using the AVM 13

Using the AVM

4. On your computer, open the file with the relevant desktop application, make the required changes, and save the file. Once edited, you must update the file in the web project.

Updating web content


The Update function enables you to update a file in the web project with content from your computer. The name of the content item being updated remains the same but the content is replaced. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Use one of the following methods to locate the content item you want to update: In your user sandbox (My Sandbox), click to expand the Modified Items list.

In your user sandbox (My Sandbox), click to expand the Web Forms list. Click Browse Content to display a list of all content items within the web project that were generated from the associated web form. Click (Browse Website) for your personal sandbox in the User Sandboxes pane. In the sandbox, navigate the folder structure to locate the content item. 3. Click (Update) for the item of interest.

4. On the Update page, click Browse. 5. Locate the file on your computer that you want to upload and click Open. 6. Click Update.

Rolling back changes


The Revert action enables you to roll back a content item to the last submitted version of the file. All changes made since the file was last submitted will be lost. If a content item has never been submitted, there is no version to revert to, so the item will be deleted. You can perform this action on a single item, a selection of items, or all items in the Modified Items list in your sandbox. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the My Sandbox pane, click to expand the Modified Items list. 3. In the Modified Items list, select the content item(s) to revert, as follows: To revert a single content item, click (Revert) for that content item.

To revert multiple content items, enable the check box for each item you want to revert and click Undo Selected at the top of the Modified Items list. Click the topmost check box to select all items in the list. Click an enabled check box to deselect it. To revert all content items, select Undo All in the top right corner of your user sandbox. When you revert a single item, there is no prompt to confirm the action. The item is immediately reverted to its last submitted version and cleared from the Modified Items list. When you select multiple items (Undo Selected, Undo All), a message prompts you to confirm the action. 4. Click OK if prompted to confirm the action.

14 Enterprise 4.0

Using the AVM

The selected files are reverted to their last submitted version. If a selected file had never been submitted to staging, it is deleted from the sandbox. All reverted files are cleared from the Modified Items list.

Previewing web content


The preview feature enables you check the layout and content of your web project files, and test the links, before submitting the content. You can preview both folders and individual files; you can also preview the entire website or web application. The current view of the Staging Sandbox (the most recent snapshot) is used as a baseline for all sandboxes in the web project. This means that each user, in their own sandbox, has a complete and dynamic view of the current, approved, and submitted content for the web project. When previewing the web project within your personal sandbox, you are seeing how the site would look if all changes in your sandbox were submitted and integrated with the current snapshot. The virtualization server must be running in order to use the preview feature. Start the server as follows: 1. In Windows Explorer, browse to the Alfresco root directory. 2. Double-click virtual_start.bat. A DOS console opens. When a message similar to INFO: Server startup in 92753 ms appears, the preview functionality will be available.

Previewing a folder or individual file


You can preview individual files in the Modified Items list of your sandbox. This action is also available when browsing content within a sandbox (user or Staging). 1. Navigate to the Sandbox view of the web project you want to work with. 2. Use one of the following methods to locate the content item you want to preview: In your user sandbox (My Sandbox), click to expand the Modified Items list. In your user sandbox (My Sandbox), click to expand the Web Forms list. Click Browse Content to display a list of all content items within the web project that were generated from the associated web form. Click (Browse Website) for your personal sandbox in the User Sandboxes pane. In the sandbox, navigate the folder structure to locate the desired folder or file. 3. Click (Preview File or Preview Folder depending on your selection).

A separate browser window or a new tab opens displaying the selected file or folder.

Previewing the web project


You can preview the web project from both a user sandbox and the Staging Sandbox. In the Staging Sandbox, the preview displays the current version of the web project: the most recent staging snapshot. In a user sandbox, the preview displays a virtualized view of the modified items from the users sandbox integrated with the current snapshot. This allows the user to see how the website or web application would look and behave if the changes were submitted. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click Preview Website in the pane of the sandbox whose contents you wish to preview. A separate browser window or a new tab opens displaying the website or web application.

Using the AVM 15

Using the AVM

Submitting content items


Once your content item is complete, you can promote the item from your user sandbox (My Sandbox) to the Staging Sandbox using the Submit action. When no workflow is defined, the content is immediately promoted to the Staging Sandbox. When workflow is defined for a content item, promoting the content first routes it through the workflow. In this case, the content must be approved by the appropriate reviewer(s) before being promoted to the Staging Sandbox. Once a content item enters the editorial review process, it is no longer editable in the Modified Items list, even though you may own the lock on that item. The content item is now available only for preview. As part of submission, you have the option to set a launch date and time for the content set. Upon approval, the content set will be promoted to a separate staging area: the Content Awaiting Launch list in the Staging Sandbox. The content is held here until the launch date. See Content Launch and ExpirationAlfresco Web Content Management (WCM) is a content management system for your websites and web applications. It allows you to create, develop, and maintain your source code all within one repository. for further information. The end result of the Submit action is a snapshot in the Staging Sandbox: an archive of the current version of the site. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the My Sandbox pane, click to expand the Modified Items list, which displays content items that can be submitted to the Staging Sandbox. You can submit a single content item, a group of selected content items, or all content items. 3. In the Modified Items list, select the content item(s) to submit, as follows: a. b. To submit a single content item, click (Submit) for that content item.

To submit multiple content items, enable the check box for each item you want to submit and click Submit Selected at the top of the Modified Items list. Click the topmost check box to select all items in the list. Click an enabled check box to deselect it. To submit all content items, select Submit All in the top right corner of your user sandbox.

c.

4. On the Submit Items page, enter a Label and Description for the submission. This information is displayed as the snapshot name and description in the Staging Sandbox. 5. Select the Auto Deploy feature if you want to automatically deploy the content to the configured live server(s) once it has been approved within its workflow. The content will be deployed only to those servers that have the Include In Auto Deploy option enabled. 6. In the Workflow section, click Configure Workflow to display the workflow that will be applied to the content item(s). The workflow defined at this point overrides the workflow set at both the web form and web project level. If necessary, edit the workflow as follows. a. In the Type of Review list, select Serial or Parallel. Select Serial to allow only one reviewer to review the file at a time. Once the first review is complete, the file is passed to the next reviewer in the chain. Select Parallel to allow several reviewers to review the file simultaneously. In a parallel review, the content is read-only for the reviewers. You must select Serial to allow the reviewers to edit the content themselves. b. In the search box, type the full or partial name of the user you want to add and click Search.

16 Enterprise 4.0

Using the AVM

Leave the search box empty and click Search to return a list of all users. Selecting to display all users may take some time if there are many users in the system. c. In the results list, click to select the user to add and click Add to List. If the review is to be serial, you must add the users in the order in which you wish them to perform the review. If the review is to be parallel, the order does not matter. In this case, use SHIFT to select multiple, consecutive users from the list and use CTRL to select multiple, non-consecutive users. d. Repeat this process to add all desired users to the list. Click e. (Remove) to remove a user from the list.

Click OK to save the configuration and return to the Submit Items page.

7. Optionally, when the Content Launch section is displayed, use the date and time controls to set the date (day, month, year) and time (hours, minutes) at which all content listed in the Modified Items list will be launched to the Staging Sandbox. Until that time, the content will reside in the Content Awaiting Launch section. Click None to display the date and time controls, if they are not already displayed. Click Today to display the current date and time. Click None to clear any set launch date. 8. In the Content Expiration section, use the date and time controls to set the date (day, month, year) and time (hours, minutes) at which all content listed in the Modified Items list will expire. Click Set expiration date for all modified items to display the controls, if they are not already displayed. Click Today and then Apply To All to set the expiration date for all content listed to the current day and time. Click None and then Apply To All to clear any set expiration dates in the Modified Items list. 9. In the Modified Items section, confirm the content items you are promoting to staging. Although part of a content set, you can preview and change expiration dates for individual items. Click (Preview File) to display the selected file in a separate browser window.

Click (Change Expiration Date) to display the Change Expiration Date page. Click None to display the date and time controls, if they are not already displayed. If an expiration date is already set, edit it as desired. Click Today to display the current day and time; click None to clear the expiration date. Click OK to save the changes. 10. On the Submit Items page, click OK to promote the content as specified. As the submit action runs in the background, the submitted items remain in the Modified Items list until the submission process is complete.

Resolving conflicts
When a conflict is detected, the submission will not complete and will appear as a conflict in the Modified Items list for you to correct. When a locked item is purposely unlocked, it is possible for two versions of the same file to exist in different user sandboxes. When both are submitted to staging, being routed first through the appropriate workflow if one is defined, the file to complete submission first updates the staging

Using the AVM 17

Using the AVM

store. When the second file completes submission and attempts to update the staging store, a conflict is detected. To resolve the conflict, you must revert the conflicted content item, reapply your changes, and resubmit the item. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the My Sandbox pane, click 3. In the Modified Items list, click to expand the Modified Items list. Items in conflict appear highlighted in the list. (Revert) to revert a single conflicted item.

When you revert a single item, there is no prompt to confirm the action. The item is immediately reverted to its last submitted version and cleared from the Modified Items list. Optionally, click Revert all Conflicts to revert all conflicted items at once. 4. In your sandbox, you can now locate the reverted item, edit it as necessary, and resubmit it to staging.

Comparing snapshots
The Recent Snapshots list enables you to compare the content of one snapshot against another within the same web project and compute a list of files that are different between the two snapshots. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the Staging Sandbox, click to expand the Recent Snapshots list. 3. Select the desired action for the snapshot of interest. The options are: Compare to Current Snapshot Compare to Previous Snapshot Compare to Any Snapshot When you choose Compare to Any Snapshot, you must select a Store and specify the Version of the snapshot from that store to compare against. Use the Previous and Next buttons to select the version number or type the desired version in the box and click Refresh. 4. Click Close to return to the Sandbox view.

Managing content awaiting launch


The Content Awaiting Launch list in the Staging Sandbox is a separate staging environment. Submitted and approved content is held here until a specified launch date and time, at which point it will be promoted to the Staging Sandbox as a snapshot. In the Actions list, Preview Contents enables users to view the content awaiting launch in the context of the current staging snapshot. In addition to viewing the content in this staging environment, you can compare current and future versions of the website or web application; override the set launch date and submit the content immediately; and cancel the pending launch altogether.

Comparing versions
The Visual Comparison action enables you to do a side-by-side comparison of the version of the web project waiting to be promoted to staging and the current staging snapshot. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click to expand the Content Awaiting Launch list.

18 Enterprise 4.0

Using the AVM

3. Click (Visual Comparison) for the desired content set to preview it against the current snapshot. The window on the left displays a preview of the selected content set that is awaiting launch. This preview merges the changes submitted in that content set with the current snapshot to show the future version of the web project. The window on the right displays a preview of the current staging snapshot. 4. Navigate the two versions of the website or web application to compare the current and future versions of the web project.

Overriding the launch


The Submit Now action enables you to process the pending launch immediately rather than waiting for the specified launch date and time. Performing this task immediately promotes the content set from the Content Awaiting Launch list to staging. You will not be prompted to confirm this action. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click 3. Click to expand the Content Awaiting Launch list. (Submit Now) to immediately promote the content set to staging.

A new snapshot appears at the top of the Recent Snapshots list. The related content is cleared from the Modified Items list in your sandbox.

Cancelling the launch


The Abort Submission action enables you to cancel the pending launch before the specified launch date and time. Performing this task removes the content set from the Content Awaiting Launch list so that it will not be promoted to staging. You will not be prompted to confirm this action. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Click to expand the Content Awaiting Launch list. 3. Click (Abort Submission) to immediately cancel the submission of this content set to staging. The content set is removed from the Content Awaiting Launch list. The related items remain in the Modified Items list in your sandbox. All functionality for these items is returned. You can resubmit the content at any time.

Publishing a Web Project


Once the web content is complete and has been promoted to the Staging Sandbox, you can publish the web project to the production environment. Once published, you still have the option to revert to a previous version of the project, if necessary.

Deploying a snapshot
You deploy a snapshot in the Staging Sandbox to publish it to the production environment. Before deploying a snapshot, it is recommended that you preview and test the snapshot. If you are deploying a previous snapshot, you will need to do a rollback in order to preview and test that snapshot. 1. Navigate to the Sandbox view of the web project you want to work with.

Using the AVM 19

Using the AVM

2. In the Staging Sandbox, click

to expand the Recent Snapshots list.

Use the filter options provided at the top of this list to limit the items displayed. You can choose to view all snapshots or those submitted today, within the past 7 days, or within the past 30 days. 3. In this list, locate the snapshot you want to deploy and click column for that item. (Deploy) in the Actions

The Deploy Snapshot page opens. Each server indicated in the web project properties (the Deploy To entry) is represented on this page with a check box. 4. Select the server(s) to which you want to deploy the selected snapshot. When the selected snapshot is being deployed for the first time, all servers are selected by default. Ensure only the desired servers are selected. 5. Click OK. The page title changes to Monitor Deployment. The symbol on this page displays the progress of the deployment on each server you are deploying to. Once complete, the status is displayed: When successful, the symbol displayed. When unsuccessful, the symbol displayed. and the message Deployment Successful are and the message Deployment Failed are

You can monitor the deployment progress on this page or return to the Staging Sandbox and monitor the progress there. 6. Click Close. 7. In the Staging Sandbox, click to expand the Recent Snapshots list. The Status column indicates the status of the snapshot you deployed. There are four possible values: IN PROGRESS Deployment is currently occurring on one or more servers LIVE Deployment was successful to all servers selected PARTIAL FAILURE Deployment to one or more servers selected has failed FAILED Deployment to all servers selected has failed This column displays IN PROGRESS until the deployment is complete. Click Refresh in the upper right corner of the Staging Sandbox to update the status.

Viewing deployment reports


After deployment, a report detailing the most recent deployment is made available. Once deployment is complete, whether successful or not, the View Deployments option appears in the upper right corner of the Staging Sandbox. When deploying a snapshot to multiple servers, this option becomes available once the first deployment is complete. To see a report on all servers, access the report when the snapshot status is no longer IN PROGRESS. 1. In the Staging Sandbox, click View Deployments in the upper right corner.

20 Enterprise 4.0

Using the AVM

The report displays a pane for each server to which the snapshot was deployed. The report information details: deployment status: Deployment Successful or Deployment Failed snapshot deployed (snapshot number) deployment start and end time user who deployed the snapshot reason for failure (if applicable) deployment details 2. Click to expand the Details list. If a deployment does not result in any changes to the destination server because it is already up to date, the deployment is considered successful but a Details list will not be displayed in the report. 3. Click to expand the More Deployment Reports list. This list displays all previous deployment attempts. You can choose to view all attempts or those made today, yesterday, within the past 7 days, or within the past 30 days. Use the All filter carefully as it can return a great deal of information making the page slow to render. 4. Click an entry in this list to view the associated deployment report. 5. Click Show Last Deployment Report to return to the report for the most recent deployment attempt. 6. Click Close to return to the Staging Sandbox.

Deleting the deployment reports


When no longer needed, you can clear out the old deployment reports. This action deletes all deployment reports across all sandboxes for the current web project. This feature is available only for Content Managers and Administrators. 1. In the Staging Sandbox, click Delete All Deploy Reports in the Actions menu. A message prompts you to confirm the deletion of all deployment reports. 2. Click Yes to confirm the deletion.

Rolling back to a previous snapshot


The Revert action in the Staging Sandbox enables you to roll back to a previous snapshot. This creates a new snapshot of that version, which becomes the current staging snapshot. The new snapshot in the staging history chain is simply the older version being pulled forward. Because the current staging snapshot is the baseline for all sandboxes in the web project, each user instantly has an updated context for previewing and editing. When you want to publish a previous version of the website, it is recommended that you first roll back to the desired snapshot. This will allow usersContent Contributors, Content Publishers, Developers, and Designersto correct errors, add content, and test the site before deploying it. Once ready for publishing, you deploy the updated snapshot. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the Staging Sandbox, click to expand the Recent Snapshots list.

Using the AVM 21

Using the AVM

Use the filter options provided at the top of this list to limit the items displayed. You can choose to view all snapshots or those created today, within the past 7 days, or within the past 30 days. In the Status column, the currently deployed snapshot is marked LIVE. 3. In this list, locate the snapshot you want to revert to and click column for that item. (Revert) in the Actions

A message beneath the header indicates the reversion was successful. The Recent Snapshots list contains the new version of the website or web application. Because the current staging snapshot is the baseline for all sandboxes in the web project, each user instantly has an updated context for previewing and editing. Users can now work with this current snapshot to update and test the content. Once all necessary changes have been made, the appropriate snapshot can be deployed to publish the site.

Maintaining web forms


You can edit and delete web forms, as necessary.

Editing a web form


You can edit an existing web form to update the general properties; select and configure the associated rendering engine templates; and specify workflow for content generated by the web form. Note that editing a web form in the Web Forms space within the Data Dictionary will affect existing web projects currently using that form. When you edit a web form, a message at the top of Step One indicates the web projects currently using the form. Use the Next and Back buttons to walk through the steps in the Edit Web Form Wizard. 1. Navigate to the Web Forms space. This can be found at: Company Home > Data Dictionary > Web Forms. 2. In the Browse Spaces pane, click The Edit Web Form Wizard opens. 3. In Step One, Web Form Details, edit the general properties. a. To remove the current schema, click (Remove) to the right of the schema. (Edit Web Form) for the web form you want to edit.

4. In Step Two, Configure Templates, select and configure, or remove, rendering engine templates. a. b. To select and configure a template, refer to the topic Creating a web form on page 3. To remove a template, click (Remove) to the right of the template in the Selected Rendering Engines list that you wish to remove for this web form.

5. In Step Three, Configure Workflow, specify or clear default workflow for the web form. When you configure the workflow as part of the web form, the form will have the same workflow each time it is used in a web project. If you plan to use the web form in different projects that may require different workflows, you would want to configure the workflow when you create the web project, rather than specifying it for the web form itself. a. To select a default workflow, click Yes and select the desired workflow in the list provided.

22 Enterprise 4.0

Using the AVM

b. c.

To change the currently selected workflow, select the desired workflow in the list provided. To clear workflow specified for this web form, click No not now.

6. In Step Four, Summary, review the information and click Finish to save the updated web form.

Deleting a web form


Delete a web form from the Data Dictionary when you no longer want the form to be associated with any web projects. Deleting a web form in the Web Forms space also removes this web form from all existing web projects with which the form is associated. Although content created from the web form is not affected, users will no longer be able to create new content or edit existing content created using the form. 1. Navigate to the Web Forms space (Company Home > Data Dictionary > Web Forms). 2. Click (Delete) for the web form you want to delete from this space.

3. On the Delete Space page, select the first option: This space and all its contents. 4. Click OK. Alfresco processes the deletion and returns you to the Web Forms space.

Maintaining a web project


To maintain your web project, you can edit the project details, invite members to join the project, and delete user sandboxes. You also have the option of deleting the entire web project.

Editing the web project settings


You edit the web project details in the Edit Web Project Wizard. This wizard allows you to edit the basic web project details, configure the web forms, and configure the web project workflow. As the steps for editing a project in this wizard are identical to the steps for creating a project in the Create Web Project Wizard, this topic provides an overview of the steps required to edit a web project. For full details, please refer to the topic Creating a web project on page 4. Use the Next and Back buttons to walk through the steps in the Create Web Project Wizard. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the Actions menu, click Edit Web Project Settings. The Edit Web Project Wizard opens. 3. In Step One, Web Project Details, edit the basic web project details as required and click Next. The DNS name and Webapp are not editable. 4. In Step Two, Configure Deployment Servers, add, edit, and remove servers as necessary. To specify a deployment server, refer to the topic Creating a web project on page 4. To edit an existing deployment server, click (Edit Deployment Server Details), make the necessary changes, and click Save.

Using the AVM 23

Using the AVM

To remove a deployment server from the current project, click Deployment Server).

(Delete

5. In Step Three, Configure Web Content Forms, add web forms in the Select Web Forms list to the current web project and then configure the web forms in the Selected Web Content Forms list for generating the website content. To create a new web form, click Create Web Form. The new web form will be added to the Select Web Forms list. It is also added in the Web Forms space (Company Home > Data Dictionary). 6. In the Selected Web Content Forms list, configure the selected web forms as follows: a. b. Click Web Form Details to edit details of the selected web form for the current web project. Click OK to save the updated details. Click Configure Workflow to configure the workflow defaults for this web form within the current web project. This does not configure workflow for the web project as a whole. Click OK to save the workflow configuration for the web form. Click Configure Templates to configure the rendering engine templates to use for each web form within the current web project. Click OK to save the template configuration for the web form. To remove a web form from the project, click (Remove).

c.

7. In Step Four, Configure Workflow, edit the existing web project workflow as required. The workflow defined in this step will be applied to all content not generated by forms, as well as form-generated content without a defined workflow. To remove a workflow from the project, click (Remove).

8. In Step Five, Summary, review the information and click Finish to save the updated web project.

Inviting users to a web project


The Invite Web Project Users feature enables you to add users to an existing web project and assign roles to them. You can invite both individual users and user groups to a web project. Each user invited to a web project is given a sandbox for web content development. When you add a group, each user within that group is given a sandbox. To change the role of a user already associated with the web project, you must delete the users sandbox and then add the user again with the appropriate role assigned. 1. Navigate to the Sandbox view of the web project you want to work with. 2. In the Actions menu, click Invite Web Project Users. The Invite Web Project Users page opens. 3. In Step One, Invite Users, select the users you want to add to this web project and assign roles to them. a. Select Users or Groups. In the search box, type the full or partial name of the user/ group you want to add and click Search. Leave the search box empty and click Search to return a list of all users. Selecting to display all users may take some time if there are many users in the system. b. In the Results list, click to select the users/groups to invite.

24 Enterprise 4.0

Using the AVM

Use SHIFT to select multiple, consecutive items; use CTRL to select multiple, nonconsecutive items. Select multiple users/groups only when you want to assign them the same role. c. d. In the Role list, click a role for the selected user(s)/group(s). Click Add to List. Click e. (Remove) to remove a user from the list.

Add additional invitees in the same manner, as required.

4. Click Next once all users/groups have been added. 5. In Step Two, Notify Users, choose one of the following options: Click No if you do not want the invited users to be notified of the invitation by email. Click Yes if you want the invited users to be notified of the invitation by email, then complete the Subject and Message boxes. You can write your own message, or select a template from the User Template menu and click Insert Template. 6. Click Next. 7. In Step Three, Summary, review the information and click Finish.

Deleting a sandbox from a web project


Deleting a users sandbox removes that user and all content contained within the sandbox from the web project. This does not affect the web project as a whole. The delete action cannot be reversed. 1. Navigate to the Sandbox view of the web project you want to work with. 2. Locate the user sandbox you want to remove from the web project and in the More Actions menu, click Delete. A message prompts you to confirm the deletion of the selected sandbox. 3. Click OK.

Deleting a web project


Deleting a web project is much like deleting any space within Explorer. You can perform this task in the Web Projects space. You can also perform this task on the Details page or in the Sandbox view of the web project being deleted. It is important to note that this is an irreversible task. Deleting a project removes all content within that project from the repository. 1. Navigate to the Web Projects space (Company Home > Web Projects) to display the existing web projects. 2. Delete the web project in one of the following three ways: a. b. Click (Delete) for the web project you want to delete.

In the Browse Spaces pane, click (View Details) for the web project you want to delete. In the Actions list on the Details page, click Delete. Click the name of the web project you want to delete to display the Sandbox view. In the Actions menu, click Delete.

c.

3. At the prompt, click OK to confirm the deletion of the web project.

Using the AVM 25

Using the AVM

WCM roles and tasks


There are four user roles available within Alfresco Web Content Management (WCM): Content Manager, Content Publisher, Content Contributor, and Content Reviewer. When a user is invited to join a web project, the role assigned to the user dictates the functionality available to that user within that specific web project. Note that the WCM roles are different from the Alfresco roles.
Role Content Manager Responsible for Creating a new web project, including: Setting up a basic Staging and Promotion model Configuring web forms and templates for web publishing Configuring workflow for editorial review of site changes

Reviewing and approving content from the Alfresco dashboard Rolling back published website changes by reverting to an older site snapshot Content Publisher Creating and updating reusable XML content using browser-based forms Automatically generating web pages from multiple XML content Promoting changes to the website and submitting for editorial review Staging and scheduling content releases for future publication Reviewing expired content for update or removal from the site Maintaining link integrity of a site for any promoted set of changes Content Contributor Content Reviewer Creating new documents and automatically promote PDF renditions to the website Creating and updating reusable XML content using browser-based forms Reviewing and approving content from the Alfresco dashboard Checking quality, correctness, and integrity of the site prior to content approval

A fifth role, Web Developer, is not configured as a role within the application. The Web Developer will be an administrative user responsible for: Creating new users Creating new web forms in the Alfresco Web Forms library Creating and associating templates with web forms for multi-channel output Developing and maintaining application code using standard development tools against Alfrescos virtual file system interface (CIFS)

26 Enterprise 4.0

Você também pode gostar