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/docs Legito 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.js bundle as the Legito Doc Viewer, but initializes with the Document view 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:

PropertyTypeDescription
appTitleStringDisplay title for the documents application (default: "My Documents").
viewStringThe view mode for the React app. Set to Document for the documents listing.
legitoApiBasePathStringBase path for the Legito documents API (default: /api/docs).
htmlIdStringThe 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:

TemplatePathDescription
Documents/sitecore/templates/Project/Business Hub/DocumentsTemplate folder grouping document-related templates.
Legito Document/sitecore/templates/Project/Business Hub/Documents/LegitoDocumentTemplate 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.