The official documentation is at: http://docs.alfresco.com
This page contains the current WIP thoughts for the content viewer component for use in the 3.0 release.
The content viewer component is responsible for rendering content of differing types. The component is given the noderef of some content, determines what it is and provides the most appropriate display medium.
The first place the component will look for a nodeRef will be the component instance data, if it finds one it will take precedence over the supplied nodeRef as the component has been configured within a site.
Once the content has been retrieved the component needs to select a â€˜viewerâ€™ to show the content being pointed to, the best 'viewer' will be selected using the mime type and the component configuration, explained in the next section.
The selected viewer is then added to the model passed to the template. Finally, depending on the viewer selected the template renders the appropriate section to display the content.
If a format is not provided as a parameter the viewer to use will be decided from the following configuration...
<content mimetype=â€text/plainâ€ viewer=â€textâ€ />
<content mimetype=â€text/htmlâ€ viewer=â€textâ€ />
<content mimetype=â€text/xmlâ€ viewer=â€xmlâ€ />
<content mimetype=â€video/mpegâ€ viewer=â€mediaâ€ />
<content mimetype=â€video/audioâ€ viewer=â€mediaâ€ />
<content mimetype='application/rss+xml' viewer='rss' />
Could we use the same â€˜controlsâ€™ as the property sheet stuff, this will allow people to re-use controls across the app?
User preference data may also be present i.e. the dimensions of the â€˜viewerâ€™.