<?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 whats wrong in this code? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144519#M101044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;I write one .js file but when i run that script it is not show me the content of that particular file.can anybody know where i am wrong ? any help appreciated .&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;my content.get.js look like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;var tutorial = companyhome.childByNamePath("/Guest Home/&lt;BR /&gt;Brochure.xsd");&lt;BR /&gt;document.tutorial = tutorial; &lt;BR /&gt;formfield.content = document.properties.content;&lt;BR /&gt;cache.ETag = tutorial.properties.content;&lt;BR /&gt;cache.lastModified = tutorial.properties.modified;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;And my content.get.ftl&lt;/SPAN&gt;&lt;SPAN&gt; look like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;${document.properties.content}&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 07:08:31 GMT</pubDate>
    <dc:creator>jeyush</dc:creator>
    <dc:date>2008-01-03T07:08:31Z</dc:date>
    <item>
      <title>whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144519#M101044</link>
      <description>I write one .js file but when i run that script it is not show me the content of that particular file.can anybody know where i am wrong ? any help appreciated .my content.get.js look like thisvar tutorial = companyhome.childByNamePath("/Guest Home/Brochure.xsd");document.tutorial = tutorial; formfie</description>
      <pubDate>Thu, 03 Jan 2008 07:08:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144519#M101044</guid>
      <dc:creator>jeyush</dc:creator>
      <dc:date>2008-01-03T07:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144520#M101045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please see my reply to your other post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Part of your problem is that you seem to be mixing client-side javascript with server-side javascript. What are you expecting &lt;/SPAN&gt;&lt;STRONG&gt;document&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;formfield&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;cache&lt;/STRONG&gt;&lt;SPAN&gt; objects to represent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;content.get.js&lt;/STRONG&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var tutorial = companyhome.childByNamePath("/Guest Home/Brochure.xsd"); &lt;BR /&gt;model.tutorial = tutorial;&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;STRONG&gt;content.get.html.ftl&lt;/STRONG&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${tutorial.properties.content}&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;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 08:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144520#M101045</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-01-03T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144521#M101046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thx mike , for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i want to display whole content of that file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what should i do ? now&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;content.get.js contains&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;var tutorial = companyhome.childByNamePath("/Guest Home/qwer.txt");&lt;BR /&gt;model.tutorial = tutorial; &lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;content.html.ftl contains&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;${tutorial.properties.content}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt; &lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.template.BaseContentNode$TemplateContentData@11043d2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont understand this output.so can u guide me towards the right solution.please&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bye Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 11:08:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144521#M101046</guid>
      <dc:creator>jeyush</dc:creator>
      <dc:date>2008-01-03T11:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144522#M101047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, that should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;content.get.html.ftl&lt;/STRONG&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${tutorial.content}&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;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 11:37:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144522#M101047</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-01-03T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144523#M101048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hurreeyyy It is working .Thank you very much Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 12:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144523#M101048</guid>
      <dc:creator>jeyush</dc:creator>
      <dc:date>2008-01-03T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144524#M101049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When i write &lt;/SPAN&gt;&lt;STRONG&gt;"text" as a format in .desc file&lt;/STRONG&gt;&lt;SPAN&gt; at that time, the content of that file are display , but when &lt;/SPAN&gt;&lt;STRONG&gt;i chane it to "html" &lt;/STRONG&gt;&lt;SPAN&gt; then it is not display.I tried but it is not enough to do right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;So my que is what i do to display that content in html format or any other format?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i change in desc file &lt;/SPAN&gt;&lt;STRONG&gt;format(for html)&lt;/STRONG&gt;&lt;SPAN&gt; at that time my file exe is &lt;/SPAN&gt;&lt;STRONG&gt;content.get.html.ftl&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;And when i write &lt;/SPAN&gt;&lt;STRONG&gt;format (for text)&lt;/STRONG&gt;&lt;SPAN&gt; at that time my exe is &lt;/SPAN&gt;&lt;STRONG&gt;content.get.txt.ftl&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but nothing goes right. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pls help me…I am waiting..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 07:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144524#M101049</guid>
      <dc:creator>jeyush</dc:creator>
      <dc:date>2008-01-04T07:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong in this code?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144525#M101050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suspect it's not being displayed because it's an .XSD. Try "View Source" on the web page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Freemarker has a built-in called "html" which will encode the output if that's what you need.&lt;/SPAN&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>Fri, 04 Jan 2008 10:06:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/whats-wrong-in-this-code/m-p/144525#M101050</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-01-04T10:06:53Z</dc:date>
    </item>
  </channel>
</rss>

