<?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 Section Menu in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/section-menu/m-p/269689#M222819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking for some help with the syntax in making a menu for a WCMQS site. What I'm looking to do is have a menu that lists only the first level of sections within a particular section. For instance I want the menu to list all the sections underneath the "news" section and to display them when I'm in any page in the news section including any of the news' nested sections. I've had some limited success with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#list section.sections as section&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if ! section.excludeFromNav&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href="${url.context}${section.path}"&amp;gt;&amp;lt;#if section.title?? &amp;amp;&amp;amp; section.title?length gt 0&amp;gt;${section.title}&amp;lt;#else&amp;gt;${section.name}&amp;lt;/#if&amp;gt;&amp;lt;/a&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;/#list&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;While this works when on a root level for the section, it does not work when you are in a nested section because it us looking for another set of nested sections. Is there a way in the Freemarker list tag to reference the parent section or reference a specific section by name or level (in a nested sence)? The only two references I know of are webSite.sections for the root folders and section.sections for the current section.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 21:48:17 GMT</pubDate>
    <dc:creator>foosetv</dc:creator>
    <dc:date>2011-03-08T21:48:17Z</dc:date>
    <item>
      <title>Section Menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/section-menu/m-p/269689#M222819</link>
      <description>I'm looking for some help with the syntax in making a menu for a WCMQS site. What I'm looking to do is have a menu that lists only the first level of sections within a particular section. For instance I want the menu to list all the sections underneath the "news" section and to display them when I'm</description>
      <pubDate>Tue, 08 Mar 2011 21:48:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/section-menu/m-p/269689#M222819</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-03-08T21:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Section Menu</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/section-menu/m-p/269690#M222820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In general terms I suggest getting the id of the root section (rootId = webSite.rootSection.id) and then iterating up the section tree (using section.containingSection) until you reach the section immediately &lt;/SPAN&gt;&lt;STRONG&gt;before&lt;/STRONG&gt;&lt;SPAN&gt; (section.id == rootId). At that point you have found the top level section relevant to the requested URL, and you can then use topLevelSection.sections to find the ones you want to display in your nav. This logic would probably be best done in the Javascript controller of the component rather than the Freemarker view, but either would work. Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 09:23:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/section-menu/m-p/269690#M222820</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-03-09T09:23:57Z</dc:date>
    </item>
  </channel>
</rss>

