<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating News Page for Intranet Portal in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274828#M227958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 15:36:47 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2011-06-09T15:36:47Z</dc:date>
    <item>
      <title>Creating News Page for Intranet Portal</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274827#M227957</link>
      <description>Hello! I am new to this Alfresco WCM platform and am trying to make a news page on an intranet portal.So far I have created a schema, which defines a form for news content input. Then, a template is used to generate the XML files. The XML files are generated with a filename consisting of the date an</description>
      <pubDate>Wed, 08 Jun 2011 12:58:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274827#M227957</guid>
      <dc:creator>tvo1003</dc:creator>
      <dc:date>2011-06-08T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating News Page for Intranet Portal</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274828#M227958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 15:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274828#M227958</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-06-09T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating News Page for Intranet Portal</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274829#M227959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, thank you for your reply. I have a clearer idea of my options. Could you help me a little more and elaborate on your first paragraph please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea how to use XSLT to build the list of the three latest news items. How do I make this list using XSLT? Does it involve retrieving a list of the folder's contents where the .XML news files are stored? If so, how do you do this? If you could describe the process, that would be great! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using an XSLT template, I know how to do the latter part of generating the index.html file, but not the step before (making a list of the 3 latest news items).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the book recommendations Jeff, I will head to the bookstore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 20:50:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-news-page-for-intranet-portal/m-p/274829#M227959</guid>
      <dc:creator>tvo1003</dc:creator>
      <dc:date>2011-06-09T20:50:52Z</dc:date>
    </item>
  </channel>
</rss>

