Notes
Notes
- This component is a React application bundled into
/assets/markel-documents.js. It renders entirely client-side. - The component initializes via
dynamicDocuments.init()with configuration for app title, view type, API base path, and target HTML element ID. - Documents are fetched from the
/api/docsLegito API endpoint. - The rendering does not use a Sitecore datasource or rendering parameters template — it is a standalone client-side widget.
- An
<edit-label>tag provides an Experience Editor hint: "You MAY need to save the page to see legito documents". - The component shares the same
markel-documents.jsbundle as the Legito Doc Viewer, but initializes with theDocumentview configuration.
Control Properties
Documents
A document listing and download component that displays available documents for the current Business Hub context. Supports categorized document lists, download tracking, and file type indicators.
Control Properties
This component has no Sitecore rendering parameters template. All configuration is handled via the inline JavaScript initialization call:
| Property | Type | Description |
|---|---|---|
| appTitle | String | Display title for the documents application (default: "My Documents"). |
| view | String | The view mode for the React app. Set to Document for the documents listing. |
| legitoApiBasePath | String | Base path for the Legito documents API (default: /api/docs). |
| htmlId | String | The HTML element ID where the React app mounts. Auto-generated from the rendering's unique ID. |
Template Properties
Template Properties
The Documents component does not use a Sitecore datasource template at runtime. However, it operates on documents stored using the following template structure:
| Template | Path | Description |
|---|---|---|
| Documents | /sitecore/templates/Project/Business Hub/Documents | Template folder grouping document-related templates. |
| Legito Document | /sitecore/templates/Project/Business Hub/Documents/LegitoDocument | Template for individual Legito document items. Inherits multiple base templates for document metadata, categorization, and content type support. |
The rendering itself has no Datasource Template or Parameters Template configured in its rendering definition.