Page MenuHomewrite.as

Instance-level static pages
Open, NormalPublic

Description

Overview

Allow admins to create static pages (like they already can with About and Privacy pages) that will be added to navigation on the site.

Background

Users

Admins of multi-user instances

Implementation

Save all data to appcontent table. Add new fields:

  • title - display this value in navigation
  • location or link - describes where the link is show, e.g.
    • header - the top navigation bar when not logged in
    • footer - footer navigation bar
    • NULL - don't add to any navigation, but keep the page accessible

Any created pages should become reserved usernames. If saving and a username is already taken, return an informative message and save page (since they're already expecting it to save) with an alternative slug, e.g. {slug}-page.

Design

Add /admin/edit/{slug} route. Page should have fields:

  • slug
  • title
  • content

Related Objects

Event Timeline

matt triaged this task as Normal priority.Feb 27 2019, 3:43 PM
matt created this task.
matt created this object with visibility "Public (No Login Required)".
matt created this object with edit policy "All Users".
matt claimed this task.Apr 6 2019, 3:35 PM
matt moved this task from Far Future to Soon / v1.0 on the WriteFreely board.