yui - Minimum includes for Alfresco Share custom page? -


i creating custom share page must have none of alfresco ui on it, still needs access alfresco , yahoo objects.

i have created page , caused open in new tab, errors alfresco , yahoo objects undefined.

what minimum includes must add freemarker template access objects?

update: have gotten alfresco , yahoo objects load, getting "uncaught error: extend failed, please check dependencies included."

here freemarker , javascript includes i've got far, if it'll help:

<#import "import/alfresco-common.ftl" common />  ...      <script type="text/javascript" src="../scripts/ajax/yahoo/yahoo-min.js"> </script>     <script type="text/javascript" src="../scripts/ajax/yahoo/connection/connection-min.js"> </script>     <script type="text/javascript" src="../scripts/ajax/common.js"> </script>     <script type="text/javascript" src="../scripts/ajax/utilities/utilities.js"> </script>     <script type="text/javascript" src="../yui/yuiloader/yuiloader.js"> </script>     <script type="text/javascript" src="../js/alfresco.js"> </script> 

update 2: based on first answer, first few lines of template , again yield uncaught referenceerror: yahoo not defined:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">     <head>         <region-id>head-resources</region-id>         <meta charset="utf-8">         <meta http-equiv="x-ua-compatible" content="ie=edge">         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">         <meta name="apple-mobile-web-app-capable" content="yes">          <title></title>         <script>              var urlparams; 

update 3: i've reduced source minimum necessary demonstrate problem. follows next template component definition file, followed freemarker template itself. definition:

<?xml version='1.0' encoding='utf-8'?> <page>    <title>ipad viewer</title>    <title-id>page.ipad.title</title-id>    <description>ipad viewer</description>    <description-id>page.ipad.description</description-id>    <template-instance>viewer-ipad</template-instance>    <authentication>user</authentication> </page> 

freemarker template:

<html>    <body>       <div class="content">          <@region-id>head-resources</@region-id>          <script>          alert(yahoo);          alert(alfresco);          </script>       </div>    </body> </html> 

error is:

caused by: freemarker.core.parseexception: parsing error in template "org/alfresco/viewer-ipad.ftl" in line 11, column 7: unclosed @... when end of file reached. 

i'm not sure how created page, not needed when define regions.

probably there in <region-id>head-resources</region-id> if include in page-template should suffice.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -