Extension points
Hook into rendering, conditions and new content.
Module · Veva.Modules.Pages
Editors place components in a page's areas, set their properties and preview the draft. Nothing goes live until they publish, and until then a draft can be reverted.
What it does
Pick components in the Add Content dialog, place them in a page's areas and drag them to move them.
Every edit is a draft. Preview it, see what changed in the version panel, then publish or revert.
A template sets the layout and holds the Page Area. A Shared Area keeps one header or footer for every template.
Render hooks add padding, CSS classes, date and time windows or audience rules to any component.
A Conditional Panel shows one area or the other: for signed-in visitors, on a given page, or by a value.
Export a page, a template or the shared areas as one JSON file, keep it in your repository, import it elsewhere.
How it works
01
Add it to the page tree. It starts as a draft.
02
The template's Page Area decides where the page's own content shows.
Page Area03
Place them in areas, set their properties and attach render hooks.
IContentRenderHook04
Open the draft with ?preview=Latest and fix what the Issues panel lists.
05
Publish the page. Templates and shared areas publish on their own.
publish_pageFor developers
A Razor component marked VevaComponent shows up in the component picker, and its EditorBrowsable properties become its settings. Register it in your module and restart.
Hook into rendering, conditions and new content.
@using System.ComponentModel @using Veva.Core.Domain.Attributes @using Veva.Core.Domain.Components @attribute [VevaComponent("6b1f0c52-3f0e-4f5e-9a7d-2f8c1e4b9d10")] @attribute [DisplayName("Notice")] @attribute [Category("Content")] @attribute [Icon("fas fa-bullhorn")] @attribute [AgentHint("A short notice. Set Title.")] <p class="notice">@RenderContext.DataBindingContext.FormatString(Title)</p> @code { [CascadingParameter(Name = "RenderContext")] public RenderContext RenderContext { get; set; } [EditorBrowsable, Parameter, DisplayName("Title")] [EditorArgument("databinding", true)] public string Title { get; set; } }
Keep reading
Write a component and register it in a module.
Read the guideRender hooks that change how any component renders.
Read the guideGive a component areas that editors fill.
Read the guideMore of Veva
Each one is a package. Reference it, restart, and its components are in the editor.
Structured content you list, filter and serve anywhere
OpenOne media library, with images sized on request
OpenCrawl, index and search the whole site
OpenBuildVeva(), modules, components, themes and hooks
OpenData sources, sign-in, mail, analytics and media
Open