06-08-2011 08:58 AM
06-09-2011 11:36 AM
06-09-2011 04:50 PM
You have a couple of options. You could use an XSLT or Freemarker template to build the list of the three latest news items. You'd add an additional template to your existing form that outputs a file with a consistent name, say index.html, and that would have the three latest news items. Honestly, I haven't tried this in a while, so I'm not sure it is the preferred method.
Alternatively, you could write a web script that would query the repository for the three latest news items. A web script is written with server-side JavaScript and Freemarker. The server-side JavaScript can use the AVM API to find nodes in your web project. You could then have your front-end, written in whatever language you are comfortable with, invoke the web script over HTTP. The web script would return the latest news items in a format of your choosing–HTML, JSON, RSS, or raw XML. Your page could then take that data and style the results.
Refer to Chapter 8 of the Alfresco Developer Guide (Packt) for examples. I haven't read it, but Munwar Shariff's Alfresco 3 Web Content Management (Packt) book may also be of some help.
Jeff
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.