Alfresco WCM

Embed Size (px)

Citation preview

  • 8/8/2019 Alfresco WCM

    1/32

    Community Edition 3.3

    Getting Started with Alfresco WebContent Management (WCM)

  • 8/8/2019 Alfresco WCM

    2/32

    2 Community Edition 3.3

    Contents

    Copyright.................................................................................................................................... 3

    Typographic conventions.........................................................................................................4

    Introduction................................................................................................................................ 5

    Additional resources............................................................................................................ 5

    System requirements and prerequisites..............................................................................5

    Get started..................................................................................................................................6

    Scenario...............................................................................................................................6

    Log in...................................................................................................................................6

    Set up the web project............................................................................................................. 8

    Create web forms................................................................................................................ 8

    Create the web project......................................................................................................12

    Add content to the web project.............................................................................................17

    Import the sample dynamic website..................................................................................17

    Create web content: Company Profiles.............................................................................19

    Create web content: Press Releases................................................................................22

    Manage web project content..................................................................................................26

    Approve content.................................................................................................................26

    Submit content...................................................................................................................28

    Publish the website.................................................................................................................30

    Roll back to a previous snapshot......................................................................................31

    Summary...................................................................................................................................32

  • 8/8/2019 Alfresco WCM

    3/32

    Copyright

    Getting Started with Alfresco Web Content Management (WCM) 3

    Copyright

    Copyright 2010 by Alfresco and others.

    Information in this document is subject to change without notice. No part of this document maybe reproduced or transmitted in any form or by any means, electronic or mechanical, for anypurpose, without the express written permission of Alfresco. The trademarks, service marks,

    logos, or other intellectual property rights of Alfresco and others used in this documentation("Trademarks") are the property of Alfresco and their respective owners. The furnishing of thisdocument does not give you license to these patents, trademarks, copyrights, or other intellectualproperty except as expressly provided in any written agreement from Alfresco.

    The United States export control laws and regulations, including the Export AdministrationRegulations of the U.S. Department of Commerce, and other applicable laws and regulationsapply to this documentation which prohibit the export or re-export of content, products, services,and technology to certain countries and persons. You agree to comply with all export laws,regulations, and restrictions of the United States and any foreign agency or authority and assumesole responsibility for any such unauthorized exportation.

    You may not use this documentation if you are a competitor of Alfresco, except with Alfresco'sprior written consent. In addition, you may not use the documentation for purposes of evaluatingits functionality or for any other competitive purposes.

    This copyright applies to the current version of the licensed program.

  • 8/8/2019 Alfresco WCM

    4/32

    Typographic conventions

    4 Community Edition 3.3

    Typographic conventions

    The following typographic conventions are used in this guide:

    BoldUser Interface elements

    Mono-spaced fontText the user types

  • 8/8/2019 Alfresco WCM

    5/32

    Introduction

    Getting Started with Alfresco Web Content Management (WCM) 5

    Introduction

    Alfresco Web Content Management (WCM) is a content management system for your websitesand web applications. It allows you to create, develop, and maintain your source code all withinone repository.

    Alfresco recommends you download the Enterprise Trial and walk through this guided tutorial

    to familiarize yourself with the features. Refer to the user help provided with the application forinformation on using all WCM features.

    Additional resources

    Alfresco recommends you review and keep up-to-date on the latest information regarding ourWCM offering on our Developer Wiki.

    To bookmark this page for easy reference, use the following link: http://wiki.alfresco.com/wiki/Web_Content_Management .

    System requirements and prerequisites

    This tutorial assumes you are familiar with Alfresco Explorer.

    Before beginning the tutorial, you must:

    1. Ensure the Alfresco Explorer web application is installed.

    2. Ensure the Alfresco Web Server is running.

    3. Ensure the Alfresco Virtual Server is running.

    4. Ensure the Alfresco Standalone Deployment Receiver is installed and running.

    5. Start the Alfresco Explorer web client. This must be running on the same machine as theAlfresco Web Server, Virtual Server, and Deployment Server.

    Alfresco recommends you use MySQL to evaluate WCM for this tutorial. Forinstallation and configuration instructions for MySQL, refer to Installing andConfiguring Alfresco Community Edition 3.3.

    6. Download the tutorial sample files (alfresco-wcm-examples-3.3.zipor alfresco-wcm-examples-3.3.tar.gz) from the Alfresco wiki on http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3and extract them to a convenient location.

    7. Log in to Alfresco Explorer as the Administrator (admin, admin) and create a user account,as follows:

    a. First Name: Mark

    b. Last Name: vonAlfresco

    c. Email: [email protected]

    d. User Name: mark

    e. Password: demo

    f. Home Space Name: mark

    http://wiki.alfresco.com/wiki/Web_Content_Managementhttp://wiki.alfresco.com/wiki/Web_Content_Managementhttp://wiki.alfresco.com/wiki/Web_Content_Managementhttp://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3http://wiki.alfresco.com/wiki/Web_Content_Managementhttp://wiki.alfresco.com/wiki/Web_Content_Management
  • 8/8/2019 Alfresco WCM

    6/32

    Get started

    6 Community Edition 3.3

    Get started

    The Getting Started with Alfresco Web Content Management tutorial introduces the basicWCM concepts to accompany the download of Alfresco Explorer ECM (Enterprise ContentManagement). It demonstrates how to set up and configure Explorer for managing a website andshowcases a sample web publishing scenario.

    Scenario

    For this tutorial, you will be walking through the following scenario.

    You will:

    Create web forms

    Create the web project

    Import content into the new project

    Create web content from a web form Create web content from a web form with templates

    Submit the content

    Perform a content review

    Publish the website

    Roll back to a previous version

    Log in

    Log in to Alfresco Explorer using the default credentials.1. Type the following on the login page:

    a. Username: admin

    b. Password: admin

    2. Click Login.

  • 8/8/2019 Alfresco WCM

    7/32

    Get started

    Getting Started with Alfresco Web Content Management (WCM) 7

    On entering the application, your dashboard displays.

  • 8/8/2019 Alfresco WCM

    8/32

    Set up the web project

    8 Community Edition 3.3

    Set up the web project

    To set up a web project, you must create both web forms and the web project.

    Create web forms

    A web form enables users to create XML content from a simple browser-based form. In this firsttask, you will create two web forms, one of which is associated with rendering engine templates.

    Use the Create Web Form Wizard to work through the three steps involved in creating a webform:

    Specify the general properties

    Select and configure the desired rendering engine templates

    Select a default workflow

    In the next task, you will associate these web forms with your web project.

    1. In Explorer, navigate to Company Home > Data Dictionary > Web Forms and selectCreate Web Form in the Create menu.

    The Create Web Form Wizard opens.

    2. Complete each page of the wizard as follows, clicking Next to move to the next step.

    Step One Web Form Details

    Use the Browse button to locate and upload the file company-footer.xsd from\alfresco-wcm-examples-3.3\examples\getting-started-sample in the location towhich you extracted the tutorial sample files. This populates several boxes on this page.

    Complete Step One as follows:

    TitleCompany Profile Form

    DescriptionThis form provides a summary overview of a company. These summaries are includedin press releases.

    Output path${name}.xml

  • 8/8/2019 Alfresco WCM

    9/32

    Set up the web project

    Getting Started with Alfresco Web Content Management (WCM) 9

    Step Two Configure Templates

    Leave all values blank.

    Step Three Configure Workflow

    Select No not now. This step allows you to create a default workflow for contentgenerated by this web form across all projects. Youll configure workflow locally when youcreate your web project.

    Summary

    Review the summary screen, which should look like the following:

    3. Click Finish. The new web form, company-footer, appears as a space in the Web Formsspace.

    You will now create the second web form.

    4. In the Web Forms space, select Create Web Form in the Create menu.

  • 8/8/2019 Alfresco WCM

    10/32

    Set up the web project

    10 Community Edition 3.3

    5. Again, complete each screen as follows, clicking Next to move to the next step.

    Step One Web Form Details

    Use the Browse button to locate and upload the file press-release.xsd from \alfresco-wcm-examples-3.3\examples\getting-started-sample in the location to which youextracted the tutorial sample files.

    Complete Step One as follows:

    TitlePress Release Form

    DescriptionThis form is used to create press releases for www, including both HTML and printer-friendly versions.

    Output path${name}.xml

    Step Two Configure Templates

    Use the Browse button to locate and upload the file press-release.xsl from \alfresco-wcm-examples-3.3\examples\getting-started-sample . Again, this populates severalboxes on the page.

    Complete Step Two as follows:

    Rendering EngineXSLT

    TitlePress Release HTML Template

    DescriptionThis template pre-generates an HTML page for www.

    Rendition mimetypeHTML

    Output path${name}.${extension}

  • 8/8/2019 Alfresco WCM

    11/32

    Set up the web project

    Getting Started with Alfresco Web Content Management (WCM) 11

    Click Add to List.

    To associate a second template with the form, remain in Step Two and use the Browsebutton again and upload the file press-release-plain-text.ftl from the same location. Usethe following information to complete the page:

    Rendering EngineFreeMarker

    Title

    Press Release Plain Text Template

    DescriptionThis template pre-generates a printer-friendly version to be linked from the pressrelease HTML page.

    Rendition mimetypePlain Text

    Output path${name}.${extension}

    Click Add to List.Step Three Configure Workflow

    Select No not now.

    Summary

    Review the summary screen, which should look like the following:

  • 8/8/2019 Alfresco WCM

    12/32

    Set up the web project

    12 Community Edition 3.3

    6. Click Finish.

    The new web form, press-release, appears as a space in the Web Forms space.

    Create the web project

    You create a web project using the Create Web Project Wizard.

    In this second task, you work through the wizard to complete the seven steps involved in creating

    a web project: Specify the 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 web forms for generating site content

    Select and configure workflow for content added that is not generated by a web form

    Add users and assign user roles to them

    Email a notification to the selected users

    1. Navigate to Company Home > Web Projects and select Create Web Project in theCreate menu to open the Create Web Project Wizard.

    2. Complete each page of the wizard as follows, clicking Next to move to the next step.

    Step One Web Project Details

    Use the following information to complete the page:

    Namealfrescosample

    DNS namealfrescosample

    TitleAlfresco WWW

  • 8/8/2019 Alfresco WCM

    13/32

    Set up the web project

    Getting Started with Alfresco Web Content Management (WCM) 13

    DescriptionWeb Project to evaluate Alfresco Explorer features.

    Step Two Create From Existing Web Project

    Select Create a new empty Web Project.

    Step Three Configure Deployment Receivers

    Click Add Deployment Receiver to display the configuration details.

    Use the following information to complete the page:

    TypeLive Server

    Hostlocalhost

    Port44100

    Usernameadmin

    Passwordadmin

    Click Add.

    Step Four Configure Web Forms

    Click Add to List to the right of each web form to select them to be used with this project.The web forms appear in the Selected Web Content Forms section and you must edit thedetails for each.

    Configure the Company Profile Form as follows:

    Click Web Form Details for Company Profile Form and set the Output pathpattern to /${webapp}/media/releases/content/${name}.xml .

  • 8/8/2019 Alfresco WCM

    14/32

    Set up the web project

    14 Community Edition 3.3

    We want content generated by this template to be submitted to workflow, so selectWeb Site Submission in the Workflow section.

    Click OK. Notice the attention icon next to the workflow: .

    This indicates a workflow has been selected but not configured. Click ConfigureWorkflow for this form. Search for and select the user Mark, then click Add to List.Click OK.

    Configure the Press Release Form as follows:

    Click Web Form Details for Press Release Form and set the Output path patternto /${webapp}/media/releases/content/${name}.xml .

    For the Press Release Form web form, you must specify how each templateassociated with the form will generate web content. Click Configure Templatesfor this form and set the Output path pattern to /${webapp}/media/releases/content/${name}.${extension} for both templates.

  • 8/8/2019 Alfresco WCM

    15/32

    Set up the web project

    Getting Started with Alfresco Web Content Management (WCM) 15

    Click OK.

    Step Five Configure Workflow

    Selecting workflow in this step sets workflow for the web project as a whole. All content inthe project not generated via a web form follows the workflow configured here. As you areonly creating content using web forms in this tutorial, there is no need to select a workflowoption in this step.

    Step Six Add Users

    Using the search feature provided, locate and select the user Mark. Select ContentManager as the role for this user and click Add to List.

    Step Seven Email Users

    Accept the default option No so that a notification email is not sent.

    Summary

    Review the summary screen, which should look like the following:

  • 8/8/2019 Alfresco WCM

    16/32

    Set up the web project

    16 Community Edition 3.3

    3. Click Finish.

    The new web project, alfrescosample, appears in the Web Projects space.

    Completing the wizard automatically creates a source repository, called a StagingSandbox, and a set of development repositories, called user sandboxes. There is one usersandbox for each user invited to work on the project, as well as an administrator sandbox.

  • 8/8/2019 Alfresco WCM

    17/32

    Add content to the web project

    Getting Started with Alfresco Web Content Management (WCM) 17

    Add content to the web project

    There are multiple methods of adding and creating content for a web project. In addition tocreating web content within a project, you can upload individual files from your computer andperform a bulk import. For the purpose of this tutorial, you will import content and generatecontent using web forms.

    Import the sample dynamic website

    Your newly created web project, alfrescosample, contains no content. In this task, you will usethe Bulk Import feature to populate the web project. Once imported, you will submit the content tostaging to create an initial snapshot of the project, which you can preview.

    1. In the Web Projects space, click alfrescosample.

    The sandbox view appears displaying the staging and user sandboxes.

    Each user sandbox contains the existing web project content. The sandbox labelled MySandbox belongs to the currently logged on user (in this case, the administrator).

    As the administrator, you have access to the sandboxes of all users associated with

    the web project. By default, only the Staging Sandbox and your user sandbox display;however, you can select the option Show All Sandboxes in this view to display allsandboxes available to you.

    2. In your user sandbox, click Browse Website to display the user sandbox, which is empty.

    3. Select Bulk Import in the Create menu.

    4. Use the Browse button to locate and upload the file alfresco-sample-website.war from\alfresco-wcm-examples-3.3\examples\getting-started-sample in the location towhich you extracted the tutorial sample files. Once uploaded, click OK to begin the import.

  • 8/8/2019 Alfresco WCM

    18/32

    Add content to the web project

    18 Community Edition 3.3

    The .war file, which you imported into the current directory (the ROOT web app), appearsin expanded form in your user sandbox.

    In WCM, a lock is automatically placed on content items created, imported, modified,

    or deleted in order to prevent editing clashes. In your sandbox, notice that all items (notfolders) currently display a padlock icon with a key: . This indicates that you own thelock and can perform actions on the content. A lock owned by another user appears as a

    plain padlock: . You can position your cursor over the icon to display a tooltip indicatingthe lock owner.

    5. Click Preview Website in the sandbox header to see the website in its current state.

    The preview window displays how the website or web application will look with the usersandbox content submitted. Click About us and then News to display the empty AlfrescoPress Releases page. We will come back to this again later once you have added somecontent.

    6. Close the preview and return to your user sandbox. Click alfrescosample in thebreadcrumb path to return to the sandbox view.

    7. In your user sandbox, expand the Modified Items list to display the imported content.

    8. Click Submit All and, on the Submit Items page, provide the information that will displayas the name and description of the corresponding snapshot in staging:

    a. Label: Initial Import

    b. Description: Sample website

    9. Click OK.

    The submission takes place in the background and each content item remains in the

    Modified Items list until its submission is complete.

  • 8/8/2019 Alfresco WCM

    19/32

    Add content to the web project

    Getting Started with Alfresco Web Content Management (WCM) 19

    10. Refresh the page as necessary until the Modified Items list is empty. In the StagingSandbox, expand the Recent Snapshots list to view the snapshot you have created.

    Create web content: Company Profiles

    In this task, you will use one of your web forms to create four new content items, each one acompany profile.

    1. In your user sandbox, expand the Web Forms list, which contains the two web forms youcreated: Company Profile Form and Press Release Form.

    2. Select the action Create Content associated with the Company Profile Form web form.

    The Create Web Content Wizard opens.

    3. Complete each page of the wizard as follows, clicking Next to move to the next step.

    a. Step One - Web Content Details

    Enter Alfresco as the Name.

    b. Step Two Author Web Content

    Use the following information to complete the page:

    NameAlfresco

  • 8/8/2019 Alfresco WCM

    20/32

    Add content to the web project

    20 Community Edition 3.3

    BodyAlfresco is the leading open source alternative for enterprise content management.It is the first company to bring the power of open source to the enterprise contentmanagement market, enabling unprecedented scale and a much lower total cost ofownership than proprietary systems. Founded by a team of content managementveterans that includes the co-founder of Documentum, John Newton, and formerCOO of Business Objects, John Powell, Alfresco is based in London. For more

    information, visit www.alfresco.com.c. Summary

    Review the summary screen, which should look like the following:

    Note that you are creating the content item Alfresco.xml to be stored in the location/ROOT/media/releases/content , which was specified when you created theCompany Profile Form web form.

    As we no longer need to work on this asset, select the option to Submit Alfresco.xmlwhen wizard finishes to speed up publication. This saves you from initiating aseparate submission process.

    4. Click Finish.

    The Submit Items page appears where you enter the following details regarding thesubmission:

    LabelAlfresco Profile

    DescriptionAdded Alfresco profile

    5. Click OK. You return to the Staging Sandbox. Expand the Modified Items list to view thenewly created and submitted content item: Alfresco.xml.

    Remember that the web form used to create this content item was defined with aworkflow dictating that all generated content was to be assigned to Mark, the ContentManager, for approval. Upon submission, the content item was routed through its definedworkflow, which promoted it for editorial review. This action locked the item to prevent the

    administrative user from modifying it underneath the reviewer and potentially having thewrong set of changes approved and promoted to staging.

    http://www.alfresco.com/
  • 8/8/2019 Alfresco WCM

    21/32

    Add content to the web project

    Getting Started with Alfresco Web Content Management (WCM) 21

    6. Repeat this process to create three more content items using the Company Profile Formweb form. In each case, submit the content to staging on the Summary page.

    Profile #2

    NameInterDoc

    NameInterDoc

    BodyInterDoc is a leader in the Enterprise Content Management field that providesbusiness solutions to enable operational efficiency of critical business processes. Thecompany has decades of experience in improving operational efficiency for commercialenterprises and government organizations and has used this experience to create anew generation of software solutions based on a core of open source software. Formore information, visit www.interdoc.com.

    Label (Submit)

    InterDoc ProfileDescription (Submit)

    Added InterDoc profile

    Profile #3

    NameEasypress

    NameEasypress

    BodyEasypress Technologies (www.easypress.com) provides software for convertingcontent between XML and QuarkXPress. Its flagship products include AtomikRoundtrip(TM), which provides full bidirectional XML support for QuarkXPress;Atomik Xport(TM), which provides automated QuarkXPress-to-XML conversion; andAtomik Import(TM), which provides flexible import of XML content into QuarkXPressdocuments. Easypress Technologies is an operating division of EvolvedGroup Limitedand is headquartered in Guildford, UK.

    Label (Submit)Easypress Profile

    Description (Submit)Added Easypress profile

    Profile #4

    NameWorld Economic Forum

    NameWorld Economic Forum

    BodyThe World Economic Forum (http://www.weforum.org), based in Geneva, Switzerland,is an independent organization committed to improving the state of the world. Fundedby the contributions of 1,000 of the world's foremost corporations, the Forum acts in thespirit of entrepreneurship in the global public interest to further economic growth andsocial progress.

    http://www.weforum.org/http://www.easypress.com/http://www.interdoc.com/
  • 8/8/2019 Alfresco WCM

    22/32

    Add content to the web project

    22 Community Edition 3.3

    Label (Submit)World Economic Forum Profile

    Description (Submit)Added World Economic Forum profile

    7. In the Staging Sandbox, expand the Modified Items list to view all four newly created andsubmitted profiles.

    The additional three content items are locked as they, like the first item, were promoted for

    editorial review upon submission. Until approved or rejected, these items are available onlyfor preview.

    Create web content: Press Releases

    In this task, create additional content for your website using a web form with an associatedtemplate. Once the content is complete, you can preview it. Unlike in the previous task, do notsubmit the content; you will do this as a separate task.

    1. Return to the Web Forms list in your user sandbox and select the action Create Contentassociated with the Press Release Form web form.

    The Create Web Content Wizard opens.

    2. Complete each page of the wizard as follows, clicking Next to move to the next step.

    a. Step One Web Content Details

    Enter WorldEconomicForum_Tech_Pioneer as the Name.

    b. Step Two Author Web Content

    The fields and controls presented in this step are dictated by the selected web form.Use the following information to complete the page:

    Title

    World Economic Forum Announces Technology Pioneers 2007Abstract

    Alfresco selected by leading technology experts appointed by the World EconomicForum

    LocationLONDON

    Body #1The World Economic Forum today announced 47 Technology Pioneers for 2007.Alfresco Software has been selected as one of these Technology Pioneers. TheTechnology Pioneers were nominated by the worlds leading venture capital andtechnology companies.

  • 8/8/2019 Alfresco WCM

    23/32

    Add content to the web project

    Getting Started with Alfresco Web Content Management (WCM) 23

    Click beneath the Body text box to add an additional control for the secondparagraph.

    Body #2We are proud to have won this award recognizing Alfrescos technology, theglobal power of open source and the importance of managing content in economicdevelopment, said John Newton. We hope to use the opportunities created by

    this award to gain greater visibility to how information can help solve some of theworlds most pressing problems and how sharing and retaining knowledge canlevel the playing field for companies outside of the developed world.

    Include Company Footer #1World Economic Forum

    Click beneath the Include Company Footer box to add a second footer option.

    Include Company Footer #2Alfresco

    Include Media ContactsYes

    CategoryCompany

    Launch DateSelect any date. This will not be used in the tutorial.

    Expiration DateSelect any date. This will not be used in the tutorial.

    c. Summary

    Review the summary screen, which should look like the following:

    Note that you are creating multiple items: the XML version as well as an HTML anda Plain Text rendition of the content. All versions will be stored in the location /ROOT/

    media/releases/content , which was specified when you created the Press ReleaseForm web form. Unlike the company profile content, do not submit this press releaseto staging.

  • 8/8/2019 Alfresco WCM

    24/32

    Add content to the web project

    24 Community Edition 3.3

    3. Click the Preview icon next to the generated HTML page to see the virtualized view of thewebsite with the pending changes. At the bottom of the generated HTML page, click viewplain text version to check the link to the generated text file. Also, click the News link inthe submenu to see that the JSP index page now has a link to the to-be-published content.If any changes need to be made, you can click the Back button in the wizard to modify andthen regenerate the content.

    4. Click Finish. When you are returned to the sandbox view, expand the Modified Items list

    in your sandbox to see the three new content items generated from this web form.

    Note that because these content items have not been submitted, several additional actionsare available for them.

    5. Repeat this process to create two more press releases using this web form. Again, do notsubmit the content.

    Press Release #2

    NameEasypress_OEM

    Title

    Alfresco and Easypress Technologies announce OEM Agreement for Atomik DynamicPublisher, powered QuarkXPress Server 7

    AbstractAlfresco and Easypress Technologies announce ground-breaking CollaborativePublishing

    LocationLONDON

    Body #1Alfresco, the first and leading provider of an open source enterprise content

    management solution, today announced an OEM agreement to support the launch ofEasypress Technologies new Atomik Dynamic Publisher product, which works inconjunction with the new QuarkXPress Server 7 from Quark.

    Include Company Footer #1Easypress

    Include Company Footer #2Alfresco

    Include Media ContactsYes

    CategoryCompany

    Launch DateSelect any date. This will not be used in the tutorial.

    Expiration DateSelect any date. This will not be used in the tutorial.

    Press Release #3

    Name

    InterDoc_Alfresco_Solution

    TitleInterDoc Chooses Alfresco to Deliver Solution for the Government of Quebec

  • 8/8/2019 Alfresco WCM

    25/32

    Add content to the web project

    Getting Started with Alfresco Web Content Management (WCM) 25

    AbstractAlfresco continues Government Momentum in Canada

    LocationLONDON

    Body #1Alfresco Software Inc., the first provider of an open source enterprise content

    management solution, today announced that it has been chosen by InterDoc to createa new regulatory government solution for customers including the government ofQuebec.

    Include Company Footer #1InterDoc

    Include Company Footer #2Alfresco

    Include Media ContactsYes

    CategoryCompany

    Launch DateSelect any date. This will not be used in the tutorial.

    Expiration DateSelect any date. This will not be used in the tutorial.

    6. In your user sandbox, expand the Modified Items list to view the nine new content items.

    7. Select Preview Website in your user sandbox. In the website preview, select About Usand then News. The JSP page displays a dynamic view of the website as it is staged inyour sandbox. Test all three links to the newly created press release web pages. Whendone, close the preview.

    8. Now select Preview Website in the Staging Sandbox. In the website preview, selectAbout Us and then News to confirm that the new web pages are only available in the usersandbox. Close the preview.

  • 8/8/2019 Alfresco WCM

    26/32

    Manage web project content

    26 Community Edition 3.3

    Manage web project content

    At this point, your web project is populated with content items, some imported and some created,some submitted and some not. You must now deal with the approval of content items that wererouted through workflow and the submission of the remaining items to staging.

    Approve content

    With all of your web project content created, you can now address the items assigned for editorialreview as part of the defined workflow.

    1. Log out as the administrative user and log in as Mark, the Content Manager (mark, demo).

    In the My Tasks To Do list on Mark's dashboard, notice the four outstanding review tasks,one for each of the company profiles you created.

    2. For the Interdoc profile, click Added Interdoc profile to open the Manage Task: Reviewpage.

  • 8/8/2019 Alfresco WCM

    27/32

    Manage web project content

    Getting Started with Alfresco Web Content Management (WCM) 27

    3. Click Approve.

    4. Approve the Added Easypress profile and Added World Economic Forum profile

    tasks in the same manner.For the Alfresco profile, you can work through the process of rejecting and resubmitting anitem for approval.

    5. Open the Added Alfresco profile task and type Please shorten description andupdate. Click Reject.

    Once rejected, the serial workflow defined reassigns the item as a task to the user whooriginally submitted itin this case, the administrative user.

    6. Log out as Mark and log in as the administrator (admin, admin).

    7. Open the task in the administrators My Tasks To Do list and note the comment in theWorkflow History list.

    8. After reviewing the changes Mark requires in order to approve the content, click the Edit

    action ( ) for Alfresco.xml in the Resources section to open the Edit Web ContentWizard.

    9. In the Body text editor box, remove the last sentence and click Next.

  • 8/8/2019 Alfresco WCM

    28/32

    Manage web project content

    28 Community Edition 3.3

    Notice on the Summary page that the option to auto-submit upon completion is notpresent, as the content has already been submitted.

    10. Click Finish. In the Comment box, type Removed last sentence and updated, thenclick Resubmit for Review.

    11. Log out as the administrator and log in as Mark again.

    In Mark's task list, notice the (2) next to the task description. This number represents the

    current review cycle for this content submission.12. Open and approve the task to promote the item to staging.

    13. Log out as Mark and log in as the administrator one last time.

    14. Within the alfrescosample project, expand the Recent Snapshots list in the StagingSandbox.

    This final promotion to staging releases the lock on the item and creates a new snapshot inthe Staging Sandbox.

    All four company profiles are complete and submitted to staging.

    Submit content

    With the website content now complete, we need to confirm how these changes will look withinthe website. To do this, you promote the content items from your user sandbox to the StagingSandbox.

    Though you will submit all items at once, you do have the option to submit a single item or agroup of selected items.

    1. In your user sandbox, expand the Modified Items list to display the content items youcreated.

    With the company profiles already submitted, your user sandbox now contains only thenine press releases.

  • 8/8/2019 Alfresco WCM

    29/32

    Manage web project content

    Getting Started with Alfresco Web Content Management (WCM) 29

    2. Click Submit All and, on the Submit Items page, provide the information that will displayas the name and description of the corresponding snapshot in staging:

    a. Label: Launch Press Releases

    b. Description: Major new awards, customers, and OEM, and agreements

    3. Click OK.

    Again, the submission is processed in the background. Each content items remain in theModified Items list until its submission is complete.

    4. After a few moments, refresh the page to see the empty Modified Items list in your usersandbox. Expand the Recent Snapshots list in the Staging Sandbox to see the submittedcontent: Launch Press Releases.

    Now that the press releases have been committed to staging, you can deploy, or publish,the snapshot to ensure your audience can see the content.

  • 8/8/2019 Alfresco WCM

    30/32

    Publish the website

    30 Community Edition 3.3

    Publish the website

    With the web project content complete and submitted, you can now publish the Staging Sandboxsnapshot to the production environment. Well deploy the website in stages, beginning with theinitial version of the site after the content was imported to the project.

    Once published, you still have the option to revert to a previous version of the project, which you

    will examine in the next task.

    1. In the Staging Sandbox, locate the Initial Import snapshot (version 3) and select the

    Deploy icon: .

    2. On the Deploy Snapshot page, confirm the selection of the remote target server,localhost, and click OK.

    3. Close the Monitor Deployment page once the snapshot is successfully deployed. In theRecent Snapshots list, note that version 3 is listed as being LIVE.

    4. Click View Deployments to review the deployment report. Click Close to return to theStaging Sandbox where you can deploy another version of the website.

    5. Expand the Recent Snapshots list again and deploy the most recent snapshot, LaunchPress Releases (version 8). Again, confirm the target server and click OK.

    6. In the Recent Snapshots list, confirm that version 8 is currently the live version of the site.

  • 8/8/2019 Alfresco WCM

    31/32

    Publish the website

    Getting Started with Alfresco Web Content Management (WCM) 31

    Roll back to a previous snapshot

    You can roll back a site to ensure an older version of the content is being delivered in the liveenvironment and also to allow re-edits prior to deployment. An example of where this is useful isthe rollout of a new section of the site or the addition of application functionality. In these cases,simply redeploying an older site version is not enough: you also need to roll back the currentworking copy of the site for your Contributors, Publishers, Developers, and Designers to correct

    errors, restage, and redeploy the content.

    Rolling back your authoring and development environment to a last known good state formodification prior to deployment is straightforward.

    1. In the Staging Sandbox, expand the Recent Snapshots list and click the Revert action,

    , for version 3 Initial Import.

    This creates a new snapshot, version 9 Reverted to Version 3.

    Note that while this is a new version of the site, no content has been duplicated in therepository; the new version is simply a new entry in the history chain noting that an olderversion has been pulled forward.

    Since all sandboxes in the web project are baselined off the current view of staging, eachuser instantly has an updated content for previewing and editing. Within the tutorial, thismeans that the profiles and press releases no longer exist.

    2. Enter your user sandbox (My Sandbox) and navigate to /media/releases/content. Thecontent items you created as you worked through the tutorial were stored here; it is nowempty.

    3. Similarly, click Preview Website in your user sandbox and select the submenu News inthe sample website to see that this page is back to its original blank state.

    If you continue to see a list of press releases, simply refresh your cache.

  • 8/8/2019 Alfresco WCM

    32/32

    Summary

    Summary

    This concludes our walkthrough of the basic Web Content Management functionality in AlfrescoCommunity Edition 3.3.

    To learn more about the capabilities provided in this release, please visit our wiki.

    http://wiki.alfresco.com/wiki