<?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: How to set default mimetype for custom models in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51346#M19520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rule does not run at all. I just changed the condition like if name equals something set the mimetype.&lt;/P&gt;&lt;P&gt;I removed the condition totally and tried. Even this rule does not trigger.&lt;/P&gt;&lt;P&gt;So i think setting the cmis:contentStreamMimeType value does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 21:17:43 GMT</pubDate>
    <dc:creator>udayakumar_p</dc:creator>
    <dc:date>2018-01-23T21:17:43Z</dc:date>
    <item>
      <title>How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51339#M19513</link>
      <description>Say we have a custom model named common:faq. It has properties cm:name, common:question, common:answer. How do i tell alfresco to set the default mimeype as text/plain for the contents created from this model?When we create a content from this model, we see that the mimetype is set as 'application/o</description>
      <pubDate>Fri, 19 Jan 2018 21:41:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51339#M19513</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-19T21:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51340#M19514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something you'd have to do via a policy / behaviour (i.e. onCreateNode) if you cannot already provide the correct mimetype as part of the content upload or implied via the file name (Alfresco will use the file extension to "guess" mimetypes, i.e. if your node is named xy.txt it will set text/plain automatically).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 14:06:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51340#M19514</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-21T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51341#M19515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks, Can you please give more detail on how to do it via&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;a policy / behaviour (i.e. onCreateNode). This is an ongoing issue in our app which needs immediate fix.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:14:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51341#M19515</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-22T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51342#M19516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we able to do it by mentioning as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;show id="mimetype" /&amp;gt;.&lt;/P&gt;&lt;P&gt;We don't want to show the field to the user and we want to set the value to text/plain always. How to set that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51342#M19516</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-22T16:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51343#M19517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a rule to be run for updating the mimetype but it does not work.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/18972_rules.png" style="width: 620px; height: 243px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:43:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51343#M19517</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-23T18:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51344#M19518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the node already of the required type during creation / moving into the folder? Otherwise you may want to also add the "When" for items updated. You can also add a mimetype check as a criteria, so it does not get triggered when the mimetype is already complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 20:46:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51344#M19518</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-23T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51345#M19519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are creating the content from create menu item. This means, we have a list of custom models in a dropdown from which we can create content. I added "when" for items updated, but still mimetype not set to text/plain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 21:12:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51345#M19519</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-23T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51346#M19520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rule does not run at all. I just changed the condition like if name equals something set the mimetype.&lt;/P&gt;&lt;P&gt;I removed the condition totally and tried. Even this rule does not trigger.&lt;/P&gt;&lt;P&gt;So i think setting the cmis:contentStreamMimeType value does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 21:17:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51346#M19520</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-23T21:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51347#M19521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you will be able to set the mimetype using the available Share actions.&lt;/P&gt;&lt;P&gt;At least I tried to find the right way to do it by using the form configuration, and I could not find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you should try another way, that is using the action Execute Script, and then having a javascript with a code just like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mimetype &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"text/plain"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it this way myself and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 01:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51347#M19521</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-01-24T01:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51348#M19522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seem to be working. Let me try more scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 05:25:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51348#M19522</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-24T05:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51349#M19523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must be doing something wrong, as I tested this code myself before sending it to you.&lt;/P&gt;&lt;P&gt;Please, share your rule configuration screen after you applied what I mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:49:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51349#M19523</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-01-24T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51350#M19524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I mentioned it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:45:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51350#M19524</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-24T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51351#M19525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/grin.png" /&gt;, sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 18:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51351#M19525</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-01-24T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51352#M19526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you help me with this query?&lt;/P&gt;&lt;P&gt;How to access the object type id(cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId) from javascript?&lt;/P&gt;&lt;P&gt;i tried something like &lt;STRONG&gt;document.properties.type.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 18:58:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51352#M19526</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-24T18:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51353#M19527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. The following will give you what you need:&lt;/P&gt;&lt;P&gt;document.typeShort;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But please, next time, for a different topic, start a new thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:48:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51353#M19527</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-01-24T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51354#M19528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:43:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51354#M19528</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-01-24T20:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default mimetype for custom models</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51355#M19529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This script is working in 5.2.2 but not in 5.0.2. Any idea? Is there any change with respect to implementation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:54:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-default-mimetype-for-custom-models/m-p/51355#M19529</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-02-05T16:54:05Z</dc:date>
    </item>
  </channel>
</rss>

