Virtual Pages allow administrators to manage global content areas (like sidebars and footers) using the same block-based editor as standard wiki pages. They bridge the gap between hardcoded templates and user-editable content.
Concept
Virtual pages are referenced in theme templates via placeholders. The rendering engine resolves these by checking for user-defined overrides before falling back to system defaults.
{{ virtual:pagename }}
Standard Virtual Pages
left_sidebar / right_sidebar
{{ virtual:left_sidebar }}
Source for the primary navigation tree or table of contents. On mobile viewports (< 1280px), the left_sidebar is replaced by the drawer menu from the mobile_sidebar page.
mobile_sidebar
Content of the drawer menu on mobile viewports. It is toggled via the hamburger menu button and includes a semi-transparent backdrop for improved visibility. By default it shows the page tree.
footer
{{ virtual:footer }}
Global footer content displayed at the base of every page.
404
Customizable 'Page Not Found' experience.
Editing and Storage
Virtual pages are edited in the dashboard under Virtual System Pages. Changes are stored as overrides in pages/_virtual/<name>/. Without an override, the defaults from purewiki/data/pages/_virtual/ are used. Virtual pages support language versions like regular pages, and fall back to the default language if a translation is missing.