<?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 Accessing custom properties with ftl in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203441#M156571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I juste finished to create a new custome content wizard based on a custom content type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i must access to the custom properties with a freemarker file like ${content.properties.description}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My custom content type is defined with in the BaseRequestWizard.java :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public abstract class BaseRequestWizard extends BaseWizardBean&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String fileName;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String author;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String title;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String description;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String mimeType;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String encoding;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String objectType;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected boolean inlineEdit;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected boolean otherPropertiesChoiceVisible = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected boolean showOtherProperties = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //Custom properties :&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String thematic;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String module;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String processing;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; protected String community;&lt;BR /&gt;…&lt;BR /&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;/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;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;BR /&gt;&lt;SPAN&gt;First question : am i wrong with this technique ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And How can i access to my custom properties ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 09:12:53 GMT</pubDate>
    <dc:creator>jbcordina</dc:creator>
    <dc:date>2008-11-13T09:12:53Z</dc:date>
    <item>
      <title>Accessing custom properties with ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203441#M156571</link>
      <description>Hi,I juste finished to create a new custome content wizard based on a custom content type.Now i must access to the custom properties with a freemarker file like ${content.properties.description}My custom content type is defined with in the BaseRequestWizard.java &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic abstract class BaseRequestWiz</description>
      <pubDate>Thu, 13 Nov 2008 09:12:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203441#M156571</guid>
      <dc:creator>jbcordina</dc:creator>
      <dc:date>2008-11-13T09:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing custom properties with ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203442#M156572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For information, i tried :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - ${content.properties.processing}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - ${content.properties.["processing"]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - ${content.properties.["cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessing"]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But no results &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 10:17:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203442#M156572</guid>
      <dc:creator>jbcordina</dc:creator>
      <dc:date>2008-11-13T10:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing custom properties with ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203443#M156573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What prefix did you specify for your namespace in your model? Let's say you set it to be "custom" then you would access it from Freemarker like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;${content.properties["custom:processing"]}&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;You don't need to be put the "." as you have in the examples that you gave.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:24:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203443#M156573</guid>
      <dc:creator>sbuckle</dc:creator>
      <dc:date>2008-11-13T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing custom properties with ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203444#M156574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried with my namespace but it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to add some definitions in a xml file to access to my values ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:50:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203444#M156574</guid>
      <dc:creator>jbcordina</dc:creator>
      <dc:date>2008-11-13T13:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing custom properties with ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203445#M156575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it's not too big, can you post your model definition (the XML)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 14:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-custom-properties-with-ftl/m-p/203445#M156575</guid>
      <dc:creator>sbuckle</dc:creator>
      <dc:date>2008-11-13T14:09:52Z</dc:date>
    </item>
  </channel>
</rss>

