Skip to content

Writing extensions

ICreateAccountHook

Namespace: Veva.Core.Application.BlazorComponents

ICreateAccountHook lets your code check a sign-up before the Create Account Form creates the account, and act on the new user afterwards. An editor turns it on per form, under Advanced > Create account hooks.

IPageRequestHook

Namespace: Veva.Core.Domain.Interfaces

IPageRequestHook runs your code on every page request, before the page renders. Use it to add scripts, styles, meta tags or data binding values to the page, to allow a domain in the Content-Security-Policy header, or to set a redirect or a status code.

IContentRenderHook

Namespace: Veva.Core.Domain.Components

IContentRenderHook runs your code around one component each time it renders. The designer calls it a component modifier: an editor adds it to a component, and it can add a CSS class, a style or an attribute, change the component's property values, write markup around it, or leave it out.

ISettings

Namespace: Veva.Core.Domain.Interfaces

A settings class holds configuration that an administrator edits in the admin, for the whole installation, one website or one user. Each registered class becomes a panel in the settings, and its public properties marked EditorBrowsable become the fields. Implement ISettings when your module needs values set by an administrator, such as an API key.

INavigationProvider

Namespace: Veva.Core.Domain.Navigation

A navigation provider supplies the tree of links that the Navigation menu component renders. By default the menu shows the website's page tree. Implement INavigationProvider to fill a menu from somewhere else, such as your own data, a list the editor types in or an external system.

IColorPalette

Namespace: Veva.Core.Domain.Pages

A colour palette is a named set of colours that editors pick from in the admin's colour editor, so they use the brand's colours instead of typing codes. Charts also use a palette to colour their data. Implement IColorPalette in a theme or module to offer your own set.

IPageSettings

Namespace: Veva.Core.Domain.Pages

Page settings are values an editor sets per page, in the page settings of the page designer. Each registered class becomes a group of fields there, and the page carries the values to your theme and components. Implement IPageSettings when a theme or module needs a per-page choice, such as a header image or a background color.

IEmailSenderService

Namespace: Veva.Core.Domain.Services

An e-mail sender service delivers the e-mails Veva sends, such as password resets and form notifications. Several can be registered, and an administrator picks the one to use in the global E-mail settings. Implement IEmailSenderService to send through something other than the SMTP and SendGrid senders.

IStartupTask

Namespace: Veva.Core.Domain.Tasks

A startup task is background work that a module registers in code, with no setup in the admin. It runs once after each start of the Veva process, or on a fixed interval such as hourly or daily. Implement IStartupTask for upkeep a module needs, such as purging old records or rebuilding a local index.

ITask

Namespace: Veva.Core.Domain.Tasks

ITask is a background job that an administrator schedules in the Tasks section of the admin. Your module registers the task type; the administrator adds it, fills in its settings and chooses how often it runs. Implement it for work that should run on a schedule an administrator controls, such as imports, clean-ups or reports.

Type to search the docs, components and API.

↑↓ to move ↵ to open Esc to close Search by Veva