<?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: PHP SDK - getting (custom) file properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295450#M248580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The location of the content model is up to the person who deployed it. If they deployed it as an amp it will be under $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/module/[some_module_name]/[possibly_some_other_sub-dir]/somename.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it was not deployed as an AMP it may be under $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension or some directory under that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it was not deployed somewhere else, but the only technical requirement is that it is found somewhere on the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could also have been deployed using a "hot deploy" to the repository itself under /Data Dictionary/Models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 22:56:14 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-05-09T22:56:14Z</dc:date>
    <item>
      <title>PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295445#M248575</link>
      <description>I'm currently implementing something with alfresco for a client. The client has an enterprise alfresco, and I'm using CMIS (i guess?) to download some of there files in certain folders, so it can be shown on their website.I'm using the php-sdk to communicate with alfresco.I succeeded in looping over</description>
      <pubDate>Tue, 06 May 2014 14:04:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295445#M248575</guid>
      <dc:creator>wielo</dc:creator>
      <dc:date>2014-05-06T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295446#M248576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which PHP SDK are you using? If you are using the one on Google Code, you are not using CMIS, you are using Web Services. The PHP SDK on Google Code has pretty good documentation. One of the things it includes is a tutorial about properties, see: &lt;/SPAN&gt;&lt;A href="https://code.google.com/p/alfresco-php-sdk/wiki/PHPTutorialThree" rel="nofollow noopener noreferrer"&gt;https://code.google.com/p/alfresco-php-sdk/wiki/PHPTutorialThree&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If, on the other hand, you are using the PHP CMIS API, available from Apache Chemistry, you are using CMIS. The documentation for getProperties lives here: &lt;/SPAN&gt;&lt;A href="http://chemistry.apache.org/php/docs/atom/classes/CMISService.html#getProperties" rel="nofollow noopener noreferrer"&gt;http://chemistry.apache.org/php/docs/atom/classes/CMISService.html#getProperties&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using this PHP CMIS API, I recommend downloading and running the Apache Chemistry OpenCMIS Workbench. That will let you inspect the objects and properties as CMIS sees them, including figuring out what a property's ID is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, accessing custom properties is no different than accessing the out-of-the-box properties. You just need to know the property's name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 19:19:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295446#M248576</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-05-06T19:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295447#M248577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the PHP SDK from google code. So I'm actually using the Web Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried doing the same as in the tutorial about properties and now I can see the custom property names, but some of them are NULL, while they actually have values if I view the file in alfresco itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The property I need is {&lt;/SPAN&gt;&lt;A href="http://www.domain.eu/alfresco/namespace}products" rel="nofollow noopener noreferrer"&gt;http://www.domain.eu/alfresco/namespace}products&lt;/A&gt;&lt;SPAN&gt; (I removed their domain). But the value is NULL. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On my screenshot in the previous post, you can see the properties do have values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem for other properties such as publicationLevel, materialNumber, … All of these properties are custom properties (they are prepended with the namespace&amp;nbsp; {&lt;/SPAN&gt;&lt;A href="http://www.domain.eu/alfresco/namespace" rel="nofollow noopener noreferrer"&gt;http://www.domain.eu/alfresco/namespace&lt;/A&gt;&lt;SPAN&gt;}).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 09:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295447#M248577</guid>
      <dc:creator>wielo</dc:creator>
      <dc:date>2014-05-07T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295448#M248578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure your code has the same node you are looking at in the user interface. One way to do this is to dump the node reference and ensure that it is the same. The only other thing I can think of that would cause the values to be null is if you are using the wrong namespace. Check your content model XML to make sure that the namespace for those specific properties is what you think it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 22:21:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295448#M248578</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-05-07T22:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295449#M248579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure the node reference is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The property namespace is {&lt;/SPAN&gt;&lt;A href="http://www.domain.eu/alfresco/namespace" rel="nofollow noopener noreferrer"&gt;http://www.domain.eu/alfresco/namespace&lt;/A&gt;&lt;SPAN&gt;} and the property name is products.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can I find the content model XML?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 09:28:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295449#M248579</guid>
      <dc:creator>wielo</dc:creator>
      <dc:date>2014-05-08T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - getting (custom) file properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295450#M248580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The location of the content model is up to the person who deployed it. If they deployed it as an amp it will be under $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/module/[some_module_name]/[possibly_some_other_sub-dir]/somename.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it was not deployed as an AMP it may be under $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension or some directory under that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it was not deployed somewhere else, but the only technical requirement is that it is found somewhere on the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could also have been deployed using a "hot deploy" to the repository itself under /Data Dictionary/Models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 22:56:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/php-sdk-getting-custom-file-properties/m-p/295450#M248580</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-05-09T22:56:14Z</dc:date>
    </item>
  </channel>
</rss>

