<?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: Basic Tutorial Three in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/basic-tutorial-three/m-p/158061#M112193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, answering my own question, in case anyone else comes across this…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the ContentData object does not have a __toString method, so in order to access the mimetype/size/etc, you have to access the properties via $value-&amp;gt;mimetype, $value-&amp;gt;size, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just modified that line in the test script to be something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;td&amp;gt;&amp;lt;?php&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(is_string($value))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; echo $value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; echo $value-&amp;gt;mimetype;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?&amp;gt;&amp;lt;/td&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 14:15:06 GMT</pubDate>
    <dc:creator>mattousai</dc:creator>
    <dc:date>2008-03-12T14:15:06Z</dc:date>
    <item>
      <title>Basic Tutorial Three</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/basic-tutorial-three/m-p/158060#M112192</link>
      <description>Hello. I have alfresco 2.1 installed with php 5.2.5I am successfully able to view/use the php content templates and have also completed the first two tutorials.The third tutorial script will display the name, node-dbid, and store-identifier, but on the fourth line (content) of the properties table,</description>
      <pubDate>Tue, 11 Mar 2008 16:59:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/basic-tutorial-three/m-p/158060#M112192</guid>
      <dc:creator>mattousai</dc:creator>
      <dc:date>2008-03-11T16:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Tutorial Three</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/basic-tutorial-three/m-p/158061#M112193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, answering my own question, in case anyone else comes across this…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the ContentData object does not have a __toString method, so in order to access the mimetype/size/etc, you have to access the properties via $value-&amp;gt;mimetype, $value-&amp;gt;size, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just modified that line in the test script to be something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;td&amp;gt;&amp;lt;?php&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(is_string($value))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; echo $value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; echo $value-&amp;gt;mimetype;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?&amp;gt;&amp;lt;/td&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 14:15:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/basic-tutorial-three/m-p/158061#M112193</guid>
      <dc:creator>mattousai</dc:creator>
      <dc:date>2008-03-12T14:15:06Z</dc:date>
    </item>
  </channel>
</rss>

