2

i have create a new page in alfresco share but the page cannot be displayed without login! how can i make this page enabled without login.

my file in "/alfresco/templates/blog/demo/custom-viewer.ftl".

and this file contains "custom-viewer.ftl":

<#include "include/alfresco-template.ftl" />
<@templateHeader>
   <@script type="text/javascript" src="${url.context}/res/modules/documentlibrary/doclib-actions.js" group="document-details"/>
   <@link rel="stylesheet" type="text/css" href="${url.context}/res/components/document-    details/document-details-panel.css" group="document-details"/>
   <@templateHtmlEditorAssets />
</@>

<@templateBody>
   <@region id="web-preview" scope="template"/>
</@>

<@templateFooter>

</@>

and the file in "/alfresco/site-data/pages/custom-viewer.xml".

and this file contains "custom-viewer.xml":

<?xml version='1.0' encoding='UTF-8'?>
<page>
   <title>Custom Viewer</title>
   <template-instance>custom-viewer</template-instance>
   <authentication>none</authentication>
</page>

the page is work correctly but i need it to work without login? any help please?!!

4

1 回答 1

1

事情可能不是您需要登录的页面,而是它包含的组件。我看到组件区域网络预览,如果这默认为默认网络预览:site-webscripts\org\alfresco\components\preview\web-preview.get.desc.xml

那么这个组件需要认证,没有<authentication>标签,所以默认是user。

如果您删除该<@region....>标记,您将看到该页面。

于 2013-09-10T11:41:53.497 回答