Alfresco-Aikau自定义动作

问题描述 投票:0回答:1

我想在露天aikau搜索页面中添加自定义操作。我已经创建了扩展模块。

<extension>
<modules>
    <module>
        <id>Custom Action In Search Result Page</id>
        <auto-deploy>true</auto-deploy>
        <version>1.0</version>

        <customizations>
            <customization>
                <targetPackageRoot>org.alfresco.share.pages.faceted-search
                </targetPackageRoot>
                <sourcePackageRoot>com.custom.faceted-search</sourcePackageRoot>
            </customization>
        </customizations>
    </module>


    <module>
        <id>Tutorial widgets</id>
        <version>1.0</version>
        <auto-deploy>true</auto-deploy>
        <configurations>
            <config evaluator="string-compare" condition="WebFramework"
                replace="false">
                <web-framework>
                    <dojo-pages>
                        <packages>
                            <package name="search" location="js/search" />
                        </packages>
                    </dojo-pages>
                </web-framework>
            </config>
        </configurations>
    </module>
</modules>

faceted-search.js

    var searchResultPage = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULT");

if(searchResultPage != null) {
    searchResultPage.config = {
        enableContextMenu : false,
        mergeActions : true,
        additionalDocumentAndFolderActions : ["example-action"]
    }
}

model.jsonModel.widgets.push({
    id: "EXAMPLE_LISTENER",
    name:"search/action"
});

没有在搜索结果页面的单个文件中添加动作。

alfresco alfresco-share alfresco-webscripts aikau
1个回答
0
投票

[要在aikau搜索结果页面中显示相同的操作,则必须提供与share-config-custom.xml操作中提供的ID相同的ID。

© www.soinside.com 2019 - 2024. All rights reserved.