露天共享中的未经身份验证的 FreeMarker 页面 [英] Non-Authenticated FreeMarker page in alfresco share

查看:18
本文介绍了露天共享中的未经身份验证的 FreeMarker 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 alfresco share 中创建了一个新页面,但是没有登录就无法显示该页面!如何在不登录的情况下启用此页面.

我在/alfresco/templates/blog/demo/custom-viewer.ftl"中的文件.

并且此文件包含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></@>

以及/alfresco/site-data/pages/custom-viewer.xml"中的文件.

并且此文件包含custom-viewer.xml":

<title>自定义查看器</title><template-instance>自定义查看器</template-instance><身份验证>无</身份验证></页面>

页面工作正常,但我需要它在没有登录的情况下工作?有什么帮助吗?!!

解决方案

问题可能不是需要登录的页面,而是它包含的组件.我看到组件区域网络预览,如果这默认为默认网络预览:site-webscriptsorgalfrescocomponentspreviewweb-preview.get.desc.xml>

那么这个组件需要认证,没有标签,所以默认为user.

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

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?!!

解决方案

The thing is probably not your page which needs login but the components it's including. I'm seeing component regioun web-preview, if this defaults to the default web-preview: site-webscriptsorgalfrescocomponentspreviewweb-preview.get.desc.xml

Then this components needs authentication, there is no <authentication> tag, so it defaults to user.

If you delete that <@region....> tag, you'll see the page.

这篇关于露天共享中的未经身份验证的 FreeMarker 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆