<?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: Displaying articles in menu in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264871#M218001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The getTitle operation is defined on the Resource interface from which both the Section and Asset interfaces are derived. You can call section.getAssetCollection(String) from your Freemarker if you'd prefer not to use a controller.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 09:53:38 GMT</pubDate>
    <dc:creator>bremmington</dc:creator>
    <dc:date>2011-02-28T09:53:38Z</dc:date>
    <item>
      <title>Displaying articles in menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264868#M217998</link>
      <description>Hi,I'd like to show articles in the menu. Assuming I'm having a section 'news' which doesn't contain subsections but a couple of articles news1, news2 and news3. In the menu item news these articles should be displayed as sub items. I've learned that the menu is rendered by the file:Alfresco\tomcat\</description>
      <pubDate>Thu, 24 Feb 2011 06:30:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264868#M217998</guid>
      <dc:creator>lemmy</dc:creator>
      <dc:date>2011-02-24T06:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying articles in menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264869#M217999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a little information about the objects available &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Quick_Start_Developer_Guide#Accessing_the_API" rel="nofollow noopener noreferrer"&gt;on the wiki&lt;/A&gt;&lt;SPAN&gt;. Your question prompted me to look for the WQS API javadoc online, and I failed to find it. I shall work on getting that fixed. Basically, each request processed by WQS has a few objects available to it. These are injected into the request by the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Quick_Start_Developer_Guide#The_Application_Data_Interceptor" rel="nofollow noopener noreferrer"&gt;ApplicationDataInterceptor&lt;/A&gt;&lt;SPAN&gt;: "webSite" (of type WebSite), "section" (of type Section), and "asset" (of type Asset). You can find these interfaces in the org.alfresco.wcm.client package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps what you want is a new asset collection in your top level sections that hold the articles that you want to show in the nav. Then introduce a javascript controller to the "top" component that builds up a data structure that represents the nav tree that you want to display. Use section.getAssetCollection("asset collection name") to obtain the asset collection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 14:54:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264869#M217999</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-02-24T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying articles in menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264870#M218000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply, Brian. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script top.get.html.ftl uses e.g. section.title. In the Section interface I can't find a getter for title. So where does it come from? But I do find getAssetCollection there. Can I use it in the ftl script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a section.articles collection to show all the articles in that section with the cmis-alfresco query &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT d.* from cmis:document as d WHERE in_folder('${section:.}') and d.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId='D:ws:article'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I'd like to show exactly the same in the menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lemmy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 06:08:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264870#M218000</guid>
      <dc:creator>lemmy</dc:creator>
      <dc:date>2011-02-25T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying articles in menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264871#M218001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The getTitle operation is defined on the Resource interface from which both the Section and Asset interfaces are derived. You can call section.getAssetCollection(String) from your Freemarker if you'd prefer not to use a controller.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 09:53:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-articles-in-menu/m-p/264871#M218001</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-02-28T09:53:38Z</dc:date>
    </item>
  </channel>
</rss>

