The web project

A web project contains all of the content and assets (files and images) required for the website(s). All actions for managing a specific website, creating content, uploading assets, reviewing and previewing content, workflows, managing web forms, managing rendering templates, and publishing are associated to a web project.

Create the web project

To create a new web project, go to the Company Home | Web Projects space, select the Create drop-down menu and click on the Create Web Project link as shown in the following screenshot:

Create the web project

You will see the Create Web Project Wizard, which includes seven steps in creating a web project as follows:

  1. Specify the basic web project details.
  2. Indicate if you are creating a new project or using the structure of an existing project.
  3. Configure deployment servers.
  4. Select and configure web forms for generating site content.
  5. Select and configure workflow for content added that is not generated by a web form.
  6. Add users and assign user roles to them.
  7. E-mail a notification to the selected users.

The Create Web Project Wizard is shown in the following screenshot for your reference:

Create the web project

Step one: Web Project Details

Use some sample web project information to complete the step.

Name

Unique name of your web project. This is used as unique ID for your web project.

DNS name

DNS name for deployment. Usually it is your website DNS entry such as Cignex.com.

Default Webapp

Your web project can have a web application folder name. By default it is called as ROOT in WCM. You can have more than one web application in your web project. The details of creating more web applications are given in Chapter 8,Managing Multiple Websites Using WCM.

Title

Title of your web project.

Description

Brief description of the web project.

Use as a template?

This web project can also be used as a template project to create many such web projects with the click of a button.

Preview Provider

By default Alfresco provides Virtualization Server Preview. You can customize it to have your own preview server.

Step two: Create From Existing Web Project

Select the Create a new empty Web Project option and click on the Next button.

Step three: Configure Deployment Receivers

Click on Add Deployment Receiver to display the configuration details. Use the following information to complete the page. More information about the deployment receiver and the deployment process is explained in Chapter 7,Content Delivery and Deployment.

Type

Live Server

Host

localhost

Port

44100

Username

admin

Password

admin

Step four: Configure Web Forms

Web form is a very important functionality of WCM. We are going to skip this step as web forms are covered in detail in Chapter 4, Web Content Production with Web Forms. Click on the Next button to skip this step.

Step five: Configure Workflow

This step helps you to add and configure a new workflow for the web project. The workflow can also be associated with a web form (from the previous step).

Workflows are covered very extensively in this book in Chapters 5 and 6. Refer these chapters for understanding more about adding and configuring workflows. For this web project, do not select any workflow. Click on the Next button to skip this step.

Step six: Add Users

This step allows you to select the content managers for this web project from the list of available users.

Using the search feature provided, locate and select the user. Select Content Manager as the role for this user and click on Add to List. You can add as many users as you want to a specific web project:

Step six: Add Users

Step seven: Email Users

Accept the default option No so that a notification e-mail is not sent.

Summary

Review the summary screen and click on the Finish button once you are fine with the information provided in the summary.

You can always add or modify the web project details at any given point of time.

The new web project appears in the Web Projects space. Completing the wizard automatically creates a source repository called a Staging Sandbox, and a set of development repositories called User Sandboxes. There is one User Sandbox for each user invited to work on the project, as well as an administrator sandbox.

Creating a site easily with web project

In this section we shall see how we can easily create a website with a web project. For this we will use an existing ROOT folder, and import it into the web projects folder. The details of creating a website from scratch are given in the subsequent chapters of the book.

  1. Create a new web project CIGNEX Technologies:
    Creating a site easily with web project
  2. Import the .zip file of the existing ROOT folder into the newly created web project:
    Creating a site easily with web project
  3. Click on the created website, CIGNEX Technologies.
    Creating a site easily with web project
  4. Click on Preview Website to view the website.
    Creating a site easily with web project
  5. In the browser the website will appear as follows:
    Creating a site easily with web project

The code bundle for the corresponding files is available as a downloadable for this chapter.

Listing User Sandboxes

On clicking on the web project, the sandbox view appears displaying the Staging and User Sandboxes. Each User Sandbox contains the existing web project content. The sandbox labeled My Sandbox belongs to the currently logged in 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 the User Sandbox display; however, you can select the Show All Sandboxes option in this view to display all the sandboxes available to you, as shown in the following screenshot:

Listing User Sandboxes

Refresh your browser page to view all the User Sandboxes if the browser is not refreshed automatically.

You cannot add the content directly to the Staging Sandbox. Here is the process you need to follow in order to create the content.

  1. Create content in your User Sandbox either by uploading the files or using bulk import feature.
  2. Preview the content to ensure the accuracy.
  3. Optionally verify the broken links using the links checker.
  4. Submit the approved content to the Staging Sandbox.
  5. Deploy the content from Staging Sandbox to external servers using the filesystem deployer.

Add content to the web project

There are multiple methods of adding and creating content for a web project. In addition to creating web content within a project, you can also upload individual files from your computer or perform a bulk import of a ZIP file with web project contents as shown in the following screenshot:

Add content to the web project

When you install WCM, you will also get sample files to create web projects. Refer to the file alfresco-sample-website.war, which is provided as a default example in the Alfresco bundle, from c:alfrescoextraswcm.

To bulk import content of this file, select Bulk Import in the Create menu. Use the Browse button to locate and upload the alfresco-sample-website.war file. Once uploaded, click on OK to begin the import.

The .war file, which you imported into the current directory (the ROOT webapp), appears in expanded form in your User Sandbox.

If you don't have the sample .war file, then add few sample files to your User Sandbox from your local computer using the Add Content option. In the Alfresco WCM, a lock is automatically placed on content items created, imported, modified, or deleted, in order to prevent editing clashes. In our sandbox, notice that all of the items (not folders) currently display a padlock icon with a key( Add content to the web project ) This indicates that you own the lock and can perform actions on the content. A lock owned by another user appears as a plain padlock( Add content to the web project ) You can position the mouse cursor over the icon to display a tooltip indicating the lock owner.

Click on 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 submitted User Sandbox content. Click on About us and then on News to display the empty Alfresco Press Releases page. You will come back to this again later once you have added some content.

Close the preview and return to User Sandbox. Click on Project Name in the breadcrumb path to return to the sandbox view.

Submit content to the Staging Sandbox

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

In the User Sandbox, expand the Modified Items list to display the imported content.

Submit content to the Staging Sandbox

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

Label:Initial Import

Description:Sample Website

Submit content to the Staging Sandbox

Click on OK. The submission takes place in the background and each content item remains in the Modified Items list until its submission is complete.

Refresh the page as necessary until the Modified Items list is empty. In the Staging Sandbox, expand the Recent Snapshots list to view the snapshot you have created as shown in the following screenshot:

Submit content to the Staging Sandbox
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset