露天共享中未经身份验证的FreeMarker页面 [英] Non-Authenticated FreeMarker page in alfresco share
问题描述
我在露天共享中创建了一个新页面,但是如果没有登录就无法显示该页面!我如何在不登录的情况下启用此页面。
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.
我在 /alfresco/templates/blog/demo/custom-viewer.ftl中的文件。
my file in "/alfresco/templates/blog/demo/custom-viewer.ftl".
并且此文件包含 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>
</@>
和 /alfresco/site-data/pages/custom-viewer.xml中的文件。
and the file in "/alfresco/site-data/pages/custom-viewer.xml".
,并且此文件包含 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?!!
推荐答案
问题可能不是您的页面需要登录,而是其中的组件。
我正在查看组件regioun Web预览,如果它默认为默认的Web预览: site-webscripts\org\alfresco\components\preview\web-preview.get。 desc.xml
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-webscripts\org\alfresco\components\preview\web-preview.get.desc.xml
然后,此组件需要身份验证,没有< authentication>
标记,
Then this components needs authentication, there is no <authentication>
tag, so it defaults to user.
如果删除该< @region ....> 标记,则会看到该页面。
If you delete that <@region....> tag, you'll see the page.
这篇关于露天共享中未经身份验证的FreeMarker页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!