Skip to content

Module · Veva.Modules.Pages

Build pages from blocks.

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.

dotnet add package Veva.Web.Essentials

What it does

Editors build, developers extend.

A visual designer

Pick components in the Add Content dialog, place them in a page's areas and drag them to move them.

Drafts, preview, revert

Every edit is a draft. Preview it, see what changed in the version panel, then publish or revert.

Templates and shared areas

A template sets the layout and holds the Page Area. A Shared Area keeps one header or footer for every template.

Component modifiers

Render hooks add padding, CSS classes, date and time windows or audience rules to any component.

Conditional content

A Conditional Panel shows one area or the other: for signed-in visitors, on a given page, or by a value.

Content as files

Export a page, a template or the shared areas as one JSON file, keep it in your repository, import it elsewhere.

How it works

From a draft to a live page.

  1. 01

    Create the page

    Add it to the page tree. It starts as a draft.

  2. 02

    Pick a template

    The template's Page Area decides where the page's own content shows.

    Page Area
  3. 03

    Add components

    Place them in areas, set their properties and attach render hooks.

    IContentRenderHook
  4. 04

    Preview and check

    Open the draft with ?preview=Latest and fix what the Issues panel lists.

  5. 05

    Publish

    Publish the page. Templates and shared areas publish on their own.

    publish_page

For developers

Your components, in the same editor.

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.

Notice.razor
@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

Guides for this module.

All articles

More of Veva

Explore the other modules.

Each one is a package. Reference it, restart, and its components are in the editor.

All modules

Documents

Structured content you list, filter and serve anywhere

Open

Assets

One media library, with images sized on request

Open

Search

Crawl, index and search the whole site

Open

Veva core

BuildVeva(), modules, components, themes and hooks

Open

Integrations

Data sources, sign-in, mail, analytics and media

Open

Type to search the docs, components and API.

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