Jump to content

Subject views: Difference between revisions

From NeoWiki Demo
Content deleted Content added
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
Line 6: Line 6:


{{#invoke:SubjectRow|render|s1demo9aaaaaaa1|s1demo9aaaaaaa1@SandboxCompact|s1demo9aaaaaaa1@SandboxDetail}}
{{#invoke:SubjectRow|render|s1demo9aaaaaaa1|s1demo9aaaaaaa1@SandboxCompact|s1demo9aaaaaaa1@SandboxDetail}}

== Custom View Types ==

View Types are extensible: an extension can register a new way to render Subjects. The [[Layout:SandboxCard|SandboxCard]] layout uses <code>redherb-card</code>, a custom View Type from the bundled RedHerb example extension. It arranges the data as a two-column "document control" card and reads a <code>fullWidthProperties</code> setting from the Layout to span the Description across both columns.

{{#view:s1demo9aaaaaaa1|layout=SandboxCard}}

Latest revision as of 12:32, 26 June 2026

A Subject's data can be presented through multiple Layouts, each tailored to a different context. Below, the Sandbox Subject is rendered in three views: the default schema view, plus the SandboxCompact and SandboxDetail layouts.

Edits in any view also propagate to the others without a page reload.

Sandbox Subject uses a dedicated Sandbox schema, so editing it here won't affect any other Subject in the demo wiki.

Custom View Types

View Types are extensible: an extension can register a new way to render Subjects. The SandboxCard layout uses redherb-card, a custom View Type from the bundled RedHerb example extension. It arranges the data as a two-column "document control" card and reads a fullWidthProperties setting from the Layout to span the Description across both columns.