<?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: Store Content as Markdown in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321482#M8483</link>
    <description>&lt;P&gt;Thanks very much for this - a nice and easy solution too&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2014 10:22:19 GMT</pubDate>
    <dc:creator>Lynn_</dc:creator>
    <dc:date>2014-04-25T10:22:19Z</dc:date>
    <item>
      <title>Store Content as Markdown</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321480#M8481</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I liked the &lt;A href="http://www.nuxeo.com/blog/development/2013/12/nuxeo-template-rendering-module-web-publishing-case/"&gt;article&lt;/A&gt; about storing Notes as Markdown.  Is it possible to incorporate this type into other data fields? I can't see an option to use the Markdown Widget in studio? It is also not an option in the Generic Widget. I am running the trial of version 5.9.3.&lt;/P&gt;
&lt;P&gt;Thanks,
Lynn&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 18:56:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321480#M8481</guid>
      <dc:creator>Lynn_</dc:creator>
      <dc:date>2014-04-21T18:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Store Content as Markdown</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321481#M8482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This widget is not (yet? ;-)) exposed in Studio, but you can still use it. Here are the requirements:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Two fields are needed in the schema:
&lt;UL&gt;
&lt;LI&gt;One (String) to store the content&lt;/LI&gt;
&lt;LI&gt;and another (String) to store the mime-type (html, markdown, ...)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Using a "Generic" widget and forcing the name to &lt;CODE&gt;richtext_with_mimetype&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So, say you have the &lt;CODE&gt;MyDocType&lt;/CODE&gt; document, with a schema prefix &lt;CODE&gt;mdt&lt;/CODE&gt; and two fields, &lt;CODE&gt;details&lt;/CODE&gt; and &lt;CODE&gt;details_mimetype&lt;/CODE&gt;. In your layout, drop a "Generic" widget and:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Click "Add field", enter &lt;CODE&gt;met:details&lt;/CODE&gt; (the list of fields is ordered, first one must be the storage field)&lt;/LI&gt;
&lt;LI&gt;Click "add field" again and enter &lt;CODE&gt;met:details_mimetype&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;As "Widget type", enter &lt;CODE&gt;richtext_with_mimetype&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;(save. Of course :-))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I owe a big thanks to &lt;A href="http://answers.nuxeo.com/users/20/anahide-tchertchian/"&gt;Anahide&lt;/A&gt; who helped me a lot on this answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:33:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321481#M8482</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2014-04-24T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Store Content as Markdown</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321482#M8483</link>
      <description>&lt;P&gt;Thanks very much for this - a nice and easy solution too&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 10:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/store-content-as-markdown/m-p/321482#M8483</guid>
      <dc:creator>Lynn_</dc:creator>
      <dc:date>2014-04-25T10:22:19Z</dc:date>
    </item>
  </channel>
</rss>

