4 min read

This section uses the space you have already created as a part of your Intranet sample application. As a part of sample application, you will manage content in the Intranet | Marketing Communications space. As you have secured this space earlier, only the administrator (admin) and users belonging to the Marketing group (Peter Marketing and Harish Marketing) can add content in this space. You can log in as Peter Marketing to manage content in this space.

Create Content

The web client provides two different interfaces for adding content: one to create inline editable content such as HTML, Text, and XML and the other to add binary content such Microsoft office files and scanned images. You need to have the Administrator, Contributor, Collaborator, Coordinator role on a space to create content within that space.

Creating Text Documents—HTML, Text, and XML

To create an HTML file in a space, follow the steps given below:

  • Ensure that you are in the Intranet | Marketing Communications | Switch to open source ECM | 02_Drafts space.
  • On the header, click Create | Create Content. The first pane of the Create Content wizard appears as shown in the screenshot on the next page. In this wizard, and in any Alfresco wizard, you can track your progress through the wizard from the list of steps at the left of the pane.
  • Managing Content in Alfresco

  • Provide the name of the HTML file, select HTML as Content Type, and click the Next button. The Enter Content pane of the wizard appears as shown in the next screenshot. Note that Enter Content is now highlighted in the list of steps at the left of the pane.
  • Managing Content in Alfresco

  • You can see that there is a comprehensive set of tools to help you format your HTML document. Enter some text, using some of the formatting features.
  • If you know HTML, you can also use an HTML editor by clicking on the HTML icon given. The HTML source editor is displayed. Once you have updated the HTML content, click on the update button to return to the Enter Content pane in the wizard, with the contents updated.
  • After the content is entered and edited in the Enter Content pane, click Finish. You will see the Modify Content Properties screen to update metadata associated with the content as shown in the screenshot below:
  • Managing Content in Alfresco

  • If you are satisfied with the properties, click the OK button to return to the 02_Drafts space, with your newly created file inserted.

You can launch the newly created HTML file by clicking on it. Your browser launches most of the common files such as HTML, text, and PDF. If the browser could not recognize the file, you will be prompted with the Windows dialog box containing the list of applications, from which you must choose an application. This is the normal behavior if you try to launch a file on any Internet page.

Uploading Binary Files—Word, PDF, Flash, Image, and Media

Using the web client, you can upload content from your hard drive. Choose a file from your hard disk that is not an HTML or text file. I chose Alfresco_CIGNEX.doc from my hard disk for the sample application. Ensure that you are in the Intranet | Marketing Communications | Switch to open source ECM | 02_Drafts space.

To upload a binary file in a space, follow the steps given below:

  • In the space header, click the Add Content link.
  • The Add Content dialog appears.
  • To specify the file that you want to upload, click Browse. In the File Upload dialog box, browse to the file that you want to upload. Click Open. Alfresco inserts the full path name of the selected file in the Location text box.
  • Click the Upload button to upload the file from your hard disk to the Alfresco repository. A message informs you that your upload was successful as shown in the following screenshot.
  • Click OK to confirm.
  • The Modify Content Properties dialog appears. Verify the pre-populated properties and add information in the text boxes. Click OK to save and return to the 02_Drafts space.

Managing Content in Alfresco

The file that you uploaded appears in the Content Items pane. Alfresco extracts the file size from the properties of the disk file, and includes the value in the size row. Now that you have two files, you can edit them as you like.

Edit Content

Using the web client you can edit the files that you have added previously. Note that you need to have edit permissions on the content to edit them

Inline Editing of HTML, Text, and XML

HTML files and plain text files can be created and edited inline. Each file type is edited in its own WYSIWYG editor. If you have edit access to a file, you will notice a small pencil (edit) icon as shown in the screenshot below. Clicking on the pencil icon will open the file in its editor.

Managing Content in Alfresco

LEAVE A REPLY

Please enter your comment!
Please enter your name here