AnsweredAssumed Answered

Can't embed a Alfresco webscript in a Share custom page

Question asked by ardamose123 on Sep 3, 2013
Latest reply on Sep 4, 2013 by ardamose123
I've been trying to include the result of an Alfresco Explorer webscript in a Share custom page, but to no avail.

Basically, what I've done is to create a page (with its corresponding configuration XMLs somewhere else) in an
alfresco/web-extension/templates/results.ftl
:

<blockcode>
<#include "/org/alfresco/include/alfresco-template.ftl" />
<@templateHeader />

<@templateBody>
  <@markup id="alf-hd">
  <div id="alf-hd">
    <@region id="header" scope="global" protected=true />
    <div class="page-title theme-gb-color-1 theme-border-1">
      <h1 class="theme-color-3">Some title</h1>
    </div>
  </div>
  </@>
  <@markup id="bd">
  <div id="bd">
    <div>
      <@region id="custresults" scope="global" />
    </div>
  </div>
  </@>
</@>

<@templateFooter>
  <@markup id="alf-ft">
  <div id="alf-ft">
    <@region id="footer" scope="global" />
  </div>
  </@>
</@>
</blockcode>

The "custresults" region is defined in an
alfresco/web-extension/site-data/components/global.cusresults.xml
file with the following contents.

<blockcode>
<?xml version="1.0" encoding="UTF-8"?>
<component>
  <scope>global</scope> 
  <region-id>custresults</region-id>
  <url>???</url>
  <guid>page.custom.results</guid>
</component>
</blockcode>

My problem is with the URL tag. The webscript is shown if implemented in Share. However, since what I need is in an Alfresco (non-Share) webscript, I want to show that Alfresco webscript and not a Share one. If I actually attempt to use the Alfresco webscript as URL (in all experiments I've run), nothing about the webscript is shown besides the rest of the Freemarker template.

Do you know if there a way to show the results of an Alfresco (non-Share) webscript in a Share custom page?

Outcomes