Commit Graph
51 Commits
Author SHA1 Message Date
Andy Dixon 89d64418de Merge pull request #39 from GeoffMoore1979/feature/site-scan-and-editor-workflow
Add site scan, editor-based publishing workflow and subfolder support
2026-09-24 14:09:15 +01:00
Geoff Moore 2ae3e3c0e6 Add site scan, editor-based publishing workflow and subfolder support
Adds a whole-site "Site scan" that analyses pages, images and SEO tags and
makes pages editable in one step, moves Save Draft / Schedule Publish /
Publish Now into the content editor, supports installs in a subfolder, and
hardens metadata handling. Only the cms/ directory is changed.

Added
- Site scan (Tools > Site scan, administrators): reports pages, folders,
  editable/untagged pages, images without alt text, broken local
  references, unused uploads and missing title/description/Open Graph
  tags; then tags <main> or top-level article/section content areas,
  images outside editable regions and photo placeholders, and inserts only
  missing SEO tags. Page source is edited byte-for-byte (no DOM
  re-serialisation), a revision is kept for every changed page, later scans
  list only pages that still need changes, and work runs in small batches
  with a progress bar and "N of M pages" count. New administrator-only
  actions: listSitePages, analyseSitePages, applySiteTagging.
- Click-to-edit images and photo placeholders (role="img" boxes) with a
  Media Library picker and alt text.
- Subfolder installs (basePath / siteRoot auto-detected); root installs
  behave as before.
- Audit/activity entries for cancelled schedules, image uploads, alt-text
  changes and failed scheduled publications (shared Activity class).
- Snackbar (success/error) and table-style dialogs for the page picker,
  revision history, dashboard, shared content, menus and site scan.

Changed
- Editor actions are now Save Draft | Schedule Publish | Publish Now |
  Cancel; saving in the editor and applying image/SEO changes stores a
  private draft. The toolbar no longer has Save Draft, Schedule or Publish.
- CMSController split into PagePaths, ContentDom and Activity; entry points
  share cms/bootstrap.php. Restoring a deleted page uses
  PageNotFoundException instead of matching an error message.

Fixed
- Lost updates on JSON metadata (locked FileStore::update).
- Non-atomic site-wide shared-content/menu writes; non-ASCII text handling.
- Scheduled publishing contending for a lock on every request.
- Revision pruning dropping the newest revision (revisions gain a "ts").
- Stale cached pages in the editor preview after a site is replaced.
- Saved drafts reloading without stylesheets or the correct page path, and
  Publish discarding a draft that was not re-offered in the same session.
- HTML entities in page titles; backslashes in folder names on Windows.

Migration: no manual steps. basePath/siteRoot are optional and detected
automatically. The analyseSite action was replaced by listSitePages and
analyseSitePages.
2026-09-24 13:17:09 +01:00
Andy Dixon a636ecd991 fix: harden CMS security controls 2026-06-08 17:12:42 +01:00
Andy Dixon 42fe5b9304 UI fixes, code tightening, security fixes 2026-03-17 10:19:21 +00:00
Andy Dixon 40cc6b8c66 Fix issue with namespaces for DOM 2025-10-09 17:19:55 +01:00
Andy Dixon d39d344be2 Pages list will only list CMS editable files 2024-12-19 21:04:47 +00:00
Andy Dixon 7f4cf860e2 Update README.md 2024-12-02 19:40:22 +00:00
Andy Dixon 9e0f7cb773 Merge pull request #38 from andydixon/development
Beta 2 Candidate
2024-11-18 20:36:04 +00:00
Andy Dixon 1245ed9f5f Fixed regression of the 'Edit website' button on the welcome page. Major design tweaks to login and header bar 2024-11-18 20:29:46 +00:00
Andy Dixon 8e64fa77b7 Merge pull request #37 from andydixon/development
Fix hiding clone buttons. Fixes #18
2024-11-13 12:34:54 +00:00
Andy Dixon b68c69ebe8 Fix hiding clone buttons. Fixes #18 2024-11-13 12:34:27 +00:00
Andy Dixon 971f4a92c1 Merge pull request #35 from andydixon/development
Massive refactor of code
2024-11-12 21:22:06 +00:00
Andy Dixon d0c38378b6 Massive refactor of code into classes, improve security on the image/file upload handler. Clean up the init.php into a config.php and refactor everything else to work around it.
Resolves issues #13 #14 and #16
2024-11-12 21:20:46 +00:00
Andy Dixon 6d15ad31f2 Merge pull request #34 from andydixon/development
Keep button styles the same and option to show full URL
2024-11-12 19:34:25 +00:00
Andy Dixon 94f1634fc2 Force button text styles 2024-11-12 19:32:56 +00:00
Andy Dixon f8c1892e99 Added option to show full URL in the control bar. Probably could do with styling a bit better though. 2024-11-12 18:48:00 +00:00
Andy Dixon bfa237396c Update welcome.html
Because I am stooopid
2024-11-12 17:14:15 +00:00
Andy Dixon 0b9338fcd6 Merge pull request #33 from andydixon/development
UI refinements
2024-11-11 20:11:40 +00:00
Andy Dixon 2d5ed4cc5d Refined control bar a bit so it's tidier and not on a wonk, refreshed welcome page, and added option to skip welcome page and go straight to the web page 2024-11-11 20:09:48 +00:00
Andy Dixon a6fc206560 Remove icky underline on buttons 2024-11-11 19:50:27 +00:00
Andy Dixon 69bec6f9b7 Merge pull request #32 from andydixon/development
(Not a proper) Fix for issue #31
2024-11-11 19:46:10 +00:00
Andy Dixon 6ac8ad74a0 (Not a proper) Fix for issue 31 2024-11-11 19:44:38 +00:00
Andy Dixon 29e0a969f0 Update index.html
Added example of cloning elements
2024-11-11 19:21:05 +00:00
Andy Dixon 1deaa1cffc Merge pull request #30 from andydixon/development
development
2024-11-11 19:07:58 +00:00
Andy Dixon acdce9d569 Code cleanup 2024-11-11 19:06:59 +00:00
Andy Dixon 9993357728 Added element and child cloning with .neo-dupe - resolves issue #29 2024-11-11 19:06:12 +00:00
Andy Dixon e0bba3c4bf Merge pull request #28 from andydixon/development
Development Sync
2024-10-09 21:14:11 +01:00
Andy Dixon a705f6e3e0 Fix styling of log folder alert 2024-10-09 21:09:37 +01:00
Andy Dixon 03161dbeaa Add check to make sure audit log location is writeable
Some cleanups
2024-10-09 21:06:37 +01:00
Andy Dixon 8b12366183 Merge pull request #27 from andydixon/development
Development Sync
2024-10-09 20:56:19 +01:00
Andy Dixon e5ff977ca4 Clean up CSS 2024-10-09 20:54:17 +01:00
Andy Dixon d5febe1cbe Fix multiple code issues 2024-10-09 20:50:11 +01:00
Andy Dixon 03dd469c27 Fix issue #22
Fix issue with ugly buttons :hover css
2024-10-09 20:44:46 +01:00
Andy Dixon 4067e0f0ce Merge pull request #26 from andydixon/development
Revert accidental commit and apply correct code
2024-10-09 20:36:48 +01:00
Andy Dixon 71a07e0697 ..and more code 2024-10-09 20:35:17 +01:00
Andy Dixon 71386055b0 Merge pull request #25 from andydixon/development
Development sync into master
2024-10-09 20:31:07 +01:00
Andy Dixon 87226b1f36 Fixed issue #24
Fixed issue with audit logs going into wrong location
2024-10-09 20:28:40 +01:00
Andy Dixon 76f96f9200 Fixed issue #24
Fixed issue with audit logs going into wrong location
2024-10-09 20:27:23 +01:00
Andy Dixon 081401b9ef Update README.md
Typo
2024-10-03 08:54:39 +01:00
Andy Dixon b2b7f85aba Update README.md
Rewrote to be more public, added LICENSE information
2024-10-03 08:54:13 +01:00
Andy Dixon af7650c4d4 Create LICENSE 2024-10-03 08:27:27 +01:00
Andy Dixon b9cf812f8e Refined feedback 2024-10-03 08:07:54 +01:00
Andy Dixon 1e5b8fea62 Added feedback when saving page content 2024-10-03 08:07:54 +01:00
Andy Dixon b47b0917ed Hopefully fixed issue #17 - stop adding unwanted tags into html 2024-10-03 08:07:54 +01:00
Andy Dixon d4c6e49b64 Update README.md 2024-10-03 08:07:54 +01:00
Andy Dixon ccc0ebf795 Add new page system implemented, and Select Page system implemented, Code tidied 2024-10-03 08:07:54 +01:00
Andy Dixon e4246eb60d Initial code for New Page templating system 2024-10-03 08:07:54 +01:00
Andy Dixon 7cf45e8243 Added README 2024-10-03 08:07:54 +01:00
Andy Dixon cc2a29d683 Add upload redirect 2024-10-03 08:07:53 +01:00
Andy Dixon c103a8e6dc Code Cleanup 2024-10-03 08:07:53 +01:00