<?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: Expression classdefs is undefined in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284675#M237805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to modify the functionality that exists in the "built-in" classes.get.json.ftl &amp;amp; classdetails.get.json.ftl to return additonal information.&amp;nbsp; I thought I could just copy the webscripts into my amp and modify/rename them, but I can't figure out how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I access the repo from a webscript?&amp;nbsp; I see that there are 'data webscripts' but unable to find any examples doing anything remotely similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jun 2015 20:52:11 GMT</pubDate>
    <dc:creator>ddelapasse</dc:creator>
    <dc:date>2015-06-14T20:52:11Z</dc:date>
    <item>
      <title>Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284673#M237803</link>
      <description>I'm trying to copy classes.get.json.ftl (text below) into my amp, but I've never seen ftl before and am struggling.&amp;nbsp; The code is failing with: &amp;lt;strong&amp;gt;Expression classdefs is undefined on line 3, column 8&amp;lt;/strong&amp;gt;I've renamed the imported file, but haven't changed the content yet, so it</description>
      <pubDate>Sat, 13 Jun 2015 03:07:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284673#M237803</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-06-13T03:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284674#M237804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems like you are taking wrong approach. What are you trying to achieve? How do you come across this situation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 18:30:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284674#M237804</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2015-06-14T18:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284675#M237805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to modify the functionality that exists in the "built-in" classes.get.json.ftl &amp;amp; classdetails.get.json.ftl to return additonal information.&amp;nbsp; I thought I could just copy the webscripts into my amp and modify/rename them, but I can't figure out how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I access the repo from a webscript?&amp;nbsp; I see that there are 'data webscripts' but unable to find any examples doing anything remotely similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 20:52:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284675#M237805</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-06-14T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284676#M237806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ideally you should always use extension machanism to override the existing webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still if you want to override it here are steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create similar folder structure(of webscript which you want to extend) under web-extension/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copy file which you want to override&amp;nbsp; to extension folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do your changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Refresh webscripts and you are done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 05:56:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284676#M237806</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2015-06-15T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284677#M237807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks I will try that! I thought creating an amp WAS correct the extension mechanism. I prefer to use the amps, but obviously there's something going on in the built-in "classes.get.json.ftl" giving it access to a "classdefs" list and I can't figure out where that comes from.&amp;nbsp; My amp version doesn't seem to have the same ability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try your suggestion.&amp;nbsp; Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284677#M237807</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-06-15T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression classdefs is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284678#M237808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@mitpatoliya, Now I understand!&amp;nbsp;&amp;nbsp; I took your advice and copied the files to web-extensions, but that won't work longterm for me because everytime I deploy my amp we remove the alfresco/share subfolders and let tomcat reploy them (we had issues with deployment without this step) BUT…you gave me the idea that instead of creating my own similar webscripts just to override these existing ones.&amp;nbsp; So I copied the files into my amp structure using that SAME path (org/alfresco/repository/dictionary)&amp;nbsp; and now the changes deploy with my amp.&amp;nbsp; I still don't understand why just copying the code into another webscript wouldn't work, but this approach works fine!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize that this will likely break if we go to 5.0, but I can't worry about that right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Alfresco there are so many ways to accomplish things that it can be overwhelming and confusing (at least to me).&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>Mon, 15 Jun 2015 13:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-classdefs-is-undefined/m-p/284678#M237808</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-06-15T13:53:47Z</dc:date>
    </item>
  </channel>
</rss>

