Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The flickr-simple-browser module is an example of how to build a custom content app. The module installs an app that allows you to browse photos on Flickr. We use a String as ItemId, which is easy to implement but has the disadvantage that we cannot tell the difference between photos and albums. This example also shows how to use an external Web service as the data source. The list view and the thumbnail view use the same Container coupled to a 

Javadoc resource link
rangeHigherVersion5.65
classNameinfo.magnolia.ui.vaadin.integration.contentconnector.ContentConnector
renderTypeasynchronous
. See also Content app with an Object ItemId and different containers for an example of a hierarchical container.

...

flickr-simple-browser

required

App

subapps

required


browser

required

Subapp

class

required

Javadoc resource link
0info.magnolia.ui.contentapp.browser.BrowserSubAppDescriptor
rangeHigherVersion5.65
classNameinfo.magnolia.ui.contentapp.browser.BrowserSubAppDescriptor
renderTypeasynchronous

subAppClass

required

Javadoc resource link
0info.magnolia.ui.contentapp.browser.BrowserSubApp
rangeHigherVersion5.65
classNameinfo.magnolia.ui.contentapp.browser.BrowserSubApp
renderTypeasynchronous

appClass

required

Must be 

Javadoc resource link
0info.magnolia.ui.contentapp.ContentApp
rangeHigherVersion5.65
classNameinfo.magnolia.ui.contentapp.ContentApp
renderTypeasynchronous
 or a subclass.

...

An Item has properties and every property is identified by its property ID. Define the properties in an interface. In this module we define the interface 

Javadoc resource link
0info.magnolia.flickr.simplebrowser.app.item.SimpleFlickrItem
rangeHigherVersion51.61
classNameinfo.magnolia.flickr.simplebrowser.app.item.SimpleFlickrItem
renderTypeasynchronous
.

...