Alfresco 露天CMS问题

Alfresco 露天CMS问题,alfresco,alfresco-share,Alfresco,Alfresco Share,我们在服务器上设置了Alfresco(Community Edition 4.2)环境。我们创建了一些网站和自定义内容模型,并部署在服务器上 我们面临着以下需要解决的问题 RTF字段:在自定义内容模型中,我们定义了一个RTF字段。此rtf字段未保存其值 文件夹创建:没有在文档库中创建文件夹的选项 Web脚本查询:我们需要编写webscript查询来分别获取每个网站的数据 以下是来自RTF字段的共享表单配置的代码 <config evaluator="node-type" condit

我们在服务器上设置了Alfresco(Community Edition 4.2)环境。我们创建了一些网站和自定义内容模型,并部署在服务器上

我们面临着以下需要解决的问题

  • RTF字段:在自定义内容模型中,我们定义了一个RTF字段。此rtf字段未保存其值

  • 文件夹创建:没有在文档库中创建文件夹的选项

  • Web脚本查询:我们需要编写webscript查询来分别获取每个网站的数据

  • 以下是来自RTF字段的共享表单配置的代码

    <config evaluator="node-type" condition="custom:questionscategory">
        <forms>
            <!-- Default form configuration for the cm:content type -->
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="custom:categoyTitle" />
                    <show id="custom:categoryDesc" />
                </field-visibility>
                <appearance>
                    <field id="custom:categoryDesc">
                       <control template="/org/alfresco/components/form/controls/richtext.ftl">
                      <control-param name="editorAppearance">full</control-param>
                       </control>                   
                    </field>
                </appearance>
            </form>
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="custom:categoyTitle" />
                    <show id="custom:categoryDesc" />
                </field-visibility>
                <appearance>
                    <field id="custom:categoryDesc">
                       <control template="/org/alfresco/components/form/controls/richtext.ftl">
                      <control-param name="editorAppearance">full</control-param>
                       </control>                   
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <config evaluator="model-type" condition="custom:questionscategory">
        <forms>
            <!-- Default form configuration for the cm:content type -->
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="custom:categoyTitle" />
                    <show id="custom:categoryDesc" />
                </field-visibility>
                <appearance>
                    <field id="custom:categoryDesc">
                       <control template="/org/alfresco/components/form/controls/richtext.ftl">
                      <control-param name="editorAppearance">full</control-param>
                       </control>                   
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    
    
    满的
    满的
    满的
    
    这是我为获取数据而编写的查询..我需要将网站名称添加到其中

    //按路径定位文件夹 //注意:仅支持公司主目录下的路径,不支持根目录下的路径 var query='TYPE:custom\:questionscategory'; var fbaQuetions=search.luceneSearch(查询); if(fbaQuetions==未定义的| | fbaQuetions.isContainer) { status.code=404; status.message=“fbaQuetions”+url.extension+“未找到。”; status.redirect=true; }
    model.folder=fbaQuetions

    第二个。答案可能在于缺乏权限,请确保您在站点中拥有正确的权限,至少是参与者

    要回答您的其他问题,我们需要更多信息:

    • RTF字段是什么意思?我们谈论的是什么数据类型?能否将自定义模型中的代码片段与相应的共享表单配置部分一起发布

    • 现在有很多WebScript用于获取每个站点的数据。事实上,Alfresco Share只使用WebScript与存储库通信。你需要什么数据

    更新:使用“+路径”扩展搜索查询,该路径仅在站点表达式中搜索


    ie:“路径:“/app:company\u home/st:sites/cm:yoursiteshortname//*”

    这看起来像是一个已经修补的bug,我也遇到了类似的问题。


    我将升级以获取修补程序。

    RTF是富文本字段。数据类型是与richtext关联的文本。ftlI可以看到创建文件夹的菜单选项丢失。是否可以通过单击“您也可以”中的创建文件夹来创建文件夹“-节?是否有人删除了菜单选项,或者这是一个干净的安装,除了您的自定义设置之外?是的,可以通过“您也可以”部分创建文件夹,但这只会第一次出现。此外,除了这些自定义数据模型之外,这是一个全新的安装