As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_REPOSITORY");
C:\ALF_DIR\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\pages\repository.xml
<?xml version='1.0' encoding='UTF-8'?> <page> <title>Repository Browser</title> <title-id>page.repository.title</title-id> <description>Browse content across the whole Repository</description> <description-id>page.repository.description</description-id> <template-instance>repository</template-instance> <authentication>admin</authentication> </page>
var repositoryMenuItem = widgetUtils.findObject(model.jsonModel, "id","HEADER_REPOSITORY"); //get the instance of Repository Menu item repositoryMenuItem.config.targetUrl = "<New Page URL>"; //Update the Repository menu Item URL repositoryMenuItem.config.label="<New Page Lable>"; //Update the label Example: var repositoryMenuItem = widgetUtils.findObject(model.jsonModel, "id","HEADER_REPOSITORY"); repositoryMenuItem.config.targetUrl = "console/admin-console/application"; repositoryMenuItem.config.label="My Admin Console";
var repositoryMenuItem = widgetUtils.findObject(model.jsonModel, "id","HEADER_REPOSITORY"); repositoryMenuItem.config.targetUrl = "repository#filter=path%7C%2FUser%2520Homes"; repositoryMenuItem.config.label="User Home";
var repositoryMenuItem = widgetUtils.findObject(model.jsonModel, "id","HEADER_REPOSITORY"); repositoryMenuItem.config.targetUrl = "repository#filter=path%7C%2FUser%2520Homes%2F"+user.name; repositoryMenuItem.config.label="User Home";
User Homes