<?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 Booleans on templates in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236491#M189621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I reference the value of a boolean ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#if document.properties["custom&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;Rbols"]?exists&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this returns if it exists, but i want to know if its set to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Related, how can I display Dates?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2010 10:46:49 GMT</pubDate>
    <dc:creator>miguel_martins</dc:creator>
    <dc:date>2010-01-29T10:46:49Z</dc:date>
    <item>
      <title>Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236491#M189621</link>
      <description>How can I reference the value of a boolean ?&amp;nbsp;&amp;nbsp; &amp;lt;#if document.properties["custom&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;Rbols"]?exists&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It exists&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;this returns if it exists, but i want to know if its set to true.Related, how can I display Dates?Thank you.</description>
      <pubDate>Fri, 29 Jan 2010 10:46:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236491#M189621</guid>
      <dc:creator>miguel_martins</dc:creator>
      <dc:date>2010-01-29T10:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236492#M189622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, ?exists can only be true or false. Hence, it is true when "It exists" is displayed. If you need to assign a value based on the value, you could simply assign it inside the &amp;lt;#if&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to display a boolean value, I think you would use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties["custom&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;Rbols"]?boolean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for dates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties["my:somefield"]?date&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;document.properties["my:somefield"]?datetime&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will do&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 22:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236492#M189622</guid>
      <dc:creator>invictus9</dc:creator>
      <dc:date>2010-01-29T22:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236493#M189623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bolseiro:&amp;nbsp; ${document.properties["custom&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;Rbols"]?boolean}&amp;lt;BR&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this, but whenever it is used the template view blanks out, breaking, I need to either test the boolean value or to at least show off what value it is placed at, true or false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The date worked, thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 10:48:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236493#M189623</guid>
      <dc:creator>miguel_martins</dc:creator>
      <dc:date>2010-02-01T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236494#M189624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for bumping this, but I could really use the help to display the boolean values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, another detail, when displaying dates on templates, if they arent there, it screw up the display. ( as opposed to text, when if the value is not there it just appears as a blank)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 09:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236494#M189624</guid>
      <dc:creator>miguel_martins</dc:creator>
      <dc:date>2010-02-08T09:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236495#M189625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_REST_Design_Guidelines#true_.2F_false_values" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_REST_Design_Guidelines#true_.2F_false_values&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for dates.&amp;nbsp;&amp;nbsp; For the bits of the REST API I have worked on we tend to format a string in the correct format and then put that into the model rather than trying to have freemarker format the date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This may not be the best way, but it works :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 10:25:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236495#M189625</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-02-08T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236496#M189626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it's a boolean, just use ?string, which defaults to "true" and "false".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To also handle missing values, using something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;(document.properties["my:somefield"]!false)?string&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The Freemarker documentation is a great resource for this stuff: &lt;/SPAN&gt;&lt;A href="http://freemarker.org/docs/index.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/docs/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 11:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236496#M189626</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-02-08T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Booleans on templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236497#M189627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your help, that was very useful, I wasnt aware of the name of the style of code used on templates so it had been harder to search for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 12:21:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/booleans-on-templates/m-p/236497#M189627</guid>
      <dc:creator>miguel_martins</dc:creator>
      <dc:date>2010-02-09T12:21:52Z</dc:date>
    </item>
  </channel>
</rss>

