How to host Microsoft Office files with Web Content Manager (WCM)
Applies to
HCL Digital Experience v9.5 and higher
Introduction
Host Microsoft Office files, such as Excel spreadsheets (XLS/XLSX), through HCL Digital Experience (DX) Web Content Manager (WCM) by using file resource components and delivering within presentation templates. This article explains how to serve Microsoft Office files with WCM.
Instructions
To host Microsoft Office files with WCM, perform the following steps:
- Log in to HCL DX and open the applications menu.
- Go to Web Content > Authoring and select your target web content library.
- Select New > Component > File and enter a name for the component (for example,
xlsFileResourceComponent). - Under File Element, select Upload and choose the Microsoft Office file.
- Click the Save and Close button.
- Select New > Presentation Template and enter a name for the presentation template.
-
Edit the presentation template to include a link referencing the file resource component similar to the following:
<a href='[Component name="web content/xlsfileresourcecomponent"]'>xlsLink</a> -
Click the Save button.
- Preview the content by clicking to the Preview button and verify that the link opens the spreadsheet in a new window.
-
(Optional) To display the spreadsheet directly on a Portal page without requiring a user to select a link, update the component reference in the presentation template to:
[Component name="xlsfilerescomponent" format="HTML"]Note
The conversion to HTML just works, if the document conversion service is configured correctly! For details, please review Document Conversion Services