AnsweredAssumed Answered

Document Details Custom Component

Question asked by stephenl on Aug 13, 2014
Latest reply on Aug 13, 2014 by stephenl

I've been developing using a maven dev environment and all has been working well so far but when I deploy the AMP to my locally running Alfresco Community Edition (4.2c) it doesn't seem to work.

I have a custom component (document details view side panel) that displays some custom info in a similar vein to:

I have this working fine when I deploy within my local maven dev env & I have since removed anything that may be causing exceptions etc. However the following seems to throw an error:

<#assign el=args.htmlid?js_string/>
<div class="document-details-panel">
  <h2 id="${el}-heading" class="thin dark">${msg("heading")}</h2>
  <script type="text/javascript">//<![CDATA[
    Alfresco.util.createTwister("${el}-heading", "DocumentMetadata");

With the error 'freemarker.core.InvalidReferenceException: Expression args.htmlid' in share.log (after AMP install rather than dev env), does anyone happen to know why 'args' is not populated only when I deploy my AMP extension to a live install of Alfresco (but works fine in the dev env)?

Thanks for any info, btw I'm not too clued up on web dev stuff & that's what might be letting me down here.