Blog

Custom Views in Alfresco

by | Apr 2, 2009 | Alfresco Development | 12 comments

Have you ever wanted to impart information about a space, but without having to force the user to open a document, or perform a search?

A custom view is a portal that can be attached visually to a space. It is a great way to convey information about a space and it’s contents. A custom view can be attached to any space, but can be particularly effective when used on a company’s division, department or a specific project space.

The templates for Custom Views are found in:

Company Home > Data Dictionary > Presentation Templates

In this example, we are going to use a simple template called “readme.ftl” to convey information about a weekly status call for a fictitious “Phoenix” project.

The template files are <FreeMarker> templates. For more information on FreeMarker see:  https://freemarker.sourceforge.net/

For the purposes of this example, you don’t need to know anything about FreeMarker.
Use an editor of your choice and create a readme.html file. Here is what mine looks like:

Welcome to The Phoenix Project

;

This is a reminder that we will have our weekly Status meeting tomorrow, <b>Wednesday April 1st, from 10:00 to 11:00 am</b>.  Please find tomorrow’s agenda, and this week’s reports (OWL, Kudos, & Events) in the <i>Weekly Meeting Materials</i> folder below.  The conference line information is listed below for all of our off-site colleagues:

Call in #:  1 (888) 990-3160

Pass code: 39007728

Thank you,

Sam Cooke

Program Assistant, Phoenix Project

(733)961-1990

sam.cooke@phoenix.com

Progressive Division of American Resource Management

The Phoenix Project

New Out of Old

www.arm.com/phoenix

Once you are finished creating your readme.html file, import it into the space where you want the message to appear. Like so:

armedia alfesco software my home screenTo select the template for your Custom View,  you will want to view the details of your space. Go up one level to the parent space and then select the View Details icon for your space. It’s the icon in the middle that looks like a sheet of paper. This is the View Details screen for our example space:

armedia alfesco software my home screen

Once you are on the View Details screen, select the Modify Icon for Customer View. It’s the blue one just to the left of the trash can. Next select the readme.ftl  template like so:

armedia alfesco software my home screenHit OK and then navigate to your space. Voila!, there is our meeting message. No need to email the information weekly any longer. Now it’s right there in Alfresco along with all the other project documentation. To update the information simply check out and update the readme.html file. When the file is checked back in, the view will automatically update with the new information.

armedia alfesco software my home screen

This example is a very simple one. There are a number of presentation templates bundled with Alfresco, or you can create your own template.

Categories

Need a bit more info on how Armedia can help you?

Feel free to schedule a 30-minute no-obligations meeting.

12 Comments

  1. Neoma Thelemaque

    A medical spa is a hybrid between a medical clinic and a day spa that operates under the supervision of medical doctor. Medical spas can treat facial conditions like brown spots, redness, and broken capillaries that cannot be treated at all or as effectively by a traditional esthetician.

    Reply
  2. Anime Episodes

    I have been meaning to write about something like this on my blog and this has given me an idea. Thank you.

    Reply
  3. electricista

    When I open your RSS feed it just gives me a whole lot of garbage, is the issue on my reader?

    Reply
  4. Claribel Bunde

    I dugg some of you post as I cogitated they were handy extremely helpful

    Reply
  5. Ciara Wawrzyniak

    Very educating post, bookmarked the site in interest to read more information!

    Reply
  6. firewire adapter

    Regards for this wonderful post, I am glad I detected this website on yahoo.

    Reply
  7. Brandy Linke

    Fundamentals, but yes, most factors are forgotten by a lot individuals eventually, thank you for refreshing the basics..

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *