<?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 How to address an aspect from a template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-address-an-aspect-from-a-template/m-p/116584#M82260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a custom Aspect called 'Factuur' that has several properties (for instance Factuurdate and Factuurnumber). I wrote a template that displays all the documents that have that certain aspect, but i also want to display that aspect. When I try to write the aspect, I can't seem to get the syntax right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;#if child.isDocument&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;tr&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#if hasAspect(child,"custom:Factuur") = 1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;td bgcolor=${Kleur}&amp;gt;${child.aspects.Factuur.Factuurnr}&amp;lt;/td&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#else&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;td bgcolor=${Kleur}&amp;gt;X&amp;lt;/td&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/#if&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The check if the document has an aspect works, but how do I 'read' the aspect? The child.aspects.Factuur….etc doesn't work…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jens&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jun 2007 14:25:48 GMT</pubDate>
    <dc:creator>jenskock</dc:creator>
    <dc:date>2007-06-10T14:25:48Z</dc:date>
    <item>
      <title>How to address an aspect from a template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-address-an-aspect-from-a-template/m-p/116584#M82260</link>
      <description>Hi everybody,I have created a custom Aspect called 'Factuur' that has several properties (for instance Factuurdate and Factuurnumber). I wrote a template that displays all the documents that have that certain aspect, but i also want to display that aspect. When I try to write the aspect, I can't see</description>
      <pubDate>Sun, 10 Jun 2007 14:25:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-address-an-aspect-from-a-template/m-p/116584#M82260</guid>
      <dc:creator>jenskock</dc:creator>
      <dc:date>2007-06-10T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to address an aspect from a template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-address-an-aspect-from-a-template/m-p/116585#M82261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind, I got it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 07:16:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-address-an-aspect-from-a-template/m-p/116585#M82261</guid>
      <dc:creator>jenskock</dc:creator>
      <dc:date>2007-06-11T07:16:53Z</dc:date>
    </item>
  </channel>
</rss>

