alfresco-content-app/projects/adf-office-services-ext
AleksanderSklorz e9bc42df10
[ACS-4534] nx workspace support for aca (#3143)
* ACS-4534 Added nx workspace support

* ACS-4534 Updated package-lock.json file

* ACS-4534 Configured cache directory and affected command

* ACS-4534 Updated README

* ACS-4534 Updated more README files

* ACS-4534 Fixed lint

* ACS-4534 Address comment for readme

* ACS-4534 Removed redundant build-libs script

* ACS-4534 Fixed start script

* ACS-4534 Updated some left documentation

* ACS-4534 Added more helper scripts, addressed PR comments

* ACS-4534 Updated package-lock.json after rebasing

* ACS-4534 Fix stylelint issue
2023-04-25 15:34:34 +02:00
..
2019-02-11 16:45:00 +00:00
2023-03-07 17:06:18 +00:00
2022-08-25 12:05:00 +01:00

Alfresco Office Services Extension

An extension module for the Alfresco Content Application that enables "Edit in Microsoft Office" feature.

Integrates with:

  • Context Menus
  • Toolbars
  • Viewer / Open With

Automated Installation

Install the ngi as a global tool:

npm i -g @ngstack/install

In the project root:

ngi @alfresco/adf-office-services-ext --module=extensions

Update app.extensions.json and append a reference to the plugin definition:

{
  "$references": ["aos.plugin.json"]
}

Manual Installation

Install the extension library

npm i @alfresco/adf-office-services-ext

Update the extensions.module.ts and import corresponding module.

import { NgModule } from '@angular/core';
import { AosExtensionModule } from '@alfresco/adf-office-services-ext';

// Main entry point for external extensions only.
// For any application-specific code use CoreExtensionsModule instead.

@NgModule({
  imports: [AosExtensionModule]
})
export class AppExtensionsModule {}

Setup the resource references in the angular.json assets section:

{
  "glob": "**/*.json",
  "input": "node_modules/@alfresco/adf-office-services-ext/assets",
  "output": "./assets/plugins"
}

Update app.extensions.json and append a reference to the plugin definition:

{
  "$references": ["aos.plugin.json"]
}

Disable and Enable the extension after it is installed

There's an environment that can disable or enable the installed extension.

In the app.config.json file there's a aosPlugin boolean variable where you can toggle the value false or true if you want to hide or show the extension.

The extension is enabled by default.