我在 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":
<?xml version='1.0' encoding='UTF-8'?><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 页面
发布评论