Resource Center

How to Create a Flipboard Layout

eXo Platform allows you to easily define new Content Types and define their associated view. This can help you create elaborate designs while benefiting from the powerful Content Management System.

In this tutorial, you will learn how to create a Flipboard-like layout for your page. We've called it FlipFeed.

Note that screenshots were taken on eXo Platform 3.5 but this tutorial is also compatible with eXo Platform 3.0. After downloading eXo Platform,  follow the README.txt file to install it and get started.

Add the "News" Content Type

We'll start by creating a new Content Type for News items. To create this Content Type, follow these steps:

flipfeed-1.jpg

This Content Type definition is very basic. It simply contains an image that will be used in the FlipFeed effect.

Add the Dialog Template

We now need to create the Dialog that will allow us to interact with the "News" nodetype from the Content Explorer.

To add this Dialog, follow these steps:

Add a Default View

Finally, we need to add the default View that will be used to display the "News" content.

To define this View, follow these steps:

Create a "News"

To make sure everything is okay, we'll add a new "News" item:

  • In the admin menu, go to the Content Explorer.
  • Select "Add Document", then "News" and fill in the fields.
  • flipfeed-6.jpg

  • Save, and you should see something like the following image.
  • flipfeed-7.jpg

Import a "News" Sample Set

You can import a sample set to test the template with a larger number of "News" items. The button to import nodes is not visible by default, so we'll first need to add that to the admin view:

  • Login as John and open the Content Administration app.
  • Go to Content Presentation, then Manage View.
  • flipfeed-8.jpg

  • Edit the "admin-view".
  • Click on the Admin tab.
  • Add the "Import Node" action, and save.
  • Open the Content Explorer app.
  • Select the "collaboration" drive, then click on the Import Node action.
  • flipfeed-9.jpg

Install the FlipFeed Template

The view for each individual "News" item has been defined but we now want to define how these items will be displayed when used by a Content List Viewer portlet. For that, we'll have to add a new Content List Viewer template:

  • Open the IDE app.
  • In the menu, select: Window > Select workspace…, then "dms-system" workspace.
  • In the left tree, open: dms-system > exo:ecm > views > templates > content-list-viewer > list
  • flipfeed-10.jpg

  • Create a new template (menu > File > Open Local File…).
  • Copy the following template and save: https://github.com/benjp/exosamples/blob/master/flipfeed/FlipFeed.gtmpl

Create the FlipFeed Page

We'll now create a new page to display our "News" with the FlipFeed effect:

  • Go to the Acme website and create a new page (Admin bar > Page > Add New Page).
  • Choose a name and title, then go to the layout.
  • Add a Content List app.
  • flipfeed-11.jpg

  • Edit the Content List configuration choosing the FlipFeed template.
  • flipfeed-12.jpg

Final Result

You should finally see something like this:

flipfeed-13.jpg

 

Contact Us

Questions about eXo products and services? Talk to sales.

 
 
 
Powered by eXo Platform
Copyright © 2000-2013. All rights Reserved, eXo Platform SAS Privacy Site Map
Please fill in the form below to start the download
  • *
  • *
  • *
  • *
  • *
  • *