Feature #1438

Add Pages Admin

Added by Pavan Rikhi 11 months ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Pavan Rikhi% Done:

100%

Category:AdminSpent time:-
Target version:v0.9.0 - Admin
Easy Pickings:

Description

Search for a page, edit a page, add a page.

Select which pages show in the sidebar and footer sections?

Show an edit link in the frontend when the logged-in user is an admin?

Sanitize the content, removing any potentially malicious javascript.

Associated revisions

Revision 839a9c55
Added by Pavan Rikhi about 1 month ago

[#1438] Add API Route for Listing Pages

Add an API route for listing all existing pages in the Admin.

Refs #1438

Revision f46b2345
Added by Pavan Rikhi about 1 month ago

[#1438] Add StaticPages List Page to Admin

Add a basic admin page for listing all StaticPages. This will eventually
contain links to edit specific pages as well as a button to add a new
page.

Add a StaticPageId & idDecoder to the StaticPage module.

Refs #1438

Revision efc9ccec
Added by Pavan Rikhi about 1 month ago

[#1438] Add API Route for Creating New Pages

Add an admin API route to validate & create new Page rows.

Refs #1438

Revision f5bf1105
Added by Pavan Rikhi about 1 month ago

[#1438] Add Admin Page for Creating New Pages

Add a PageNew AdminRoute that renders & handles the form for creating
new Pages.

Refactor common functions from the Admin view modules into a new
Views.Admin module.

Refs #1438

Revision f0e2a9d6
Added by Pavan Rikhi about 1 month ago

[#1438] Add Admin API Route for Editing Static Pages

Add an editPageDataRoute & editPageRoute for fetching a Page's data &
updating it's data, respectively.

Refs #1438

Revision 27bbd0c4
Added by Pavan Rikhi about 1 month ago

[#1438] Add Admin Page for Editing StaticPages

Add a form, message type, updater, & renderer for the PageEdit route to
the Views.StaticPageAdmin module.

Extract shared functions from the Category & Page admin modules into the
Views.Admin module.

Show content previews for the Add Page & Edit Page admin views.

Add StaticPageId manipulation functions to the StaticPage module.

Closes #1438

History

#1 Updated by Pavan Rikhi 4 months ago

  • Description updated (diff)

#2 Updated by Pavan Rikhi about 1 month ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Also available in: Atom PDF