1.5 KiB
1.5 KiB
Plugi Blog Extension
The blog extension provides Website Manager post and category management plus two page-builder blocks. Posts are single-language; post bodies are stored as plain text and safely escaped when rendered.
Install and update the database
- Place this directory at
extensions/plugi-ext-blog. Plugi automatically discovers extension folders containing bothextension.phpandconfig.php. - Open Website Manager and apply the pending database definition update. Existing installations need this update to create the extension-owned post and category tables.
- Add categories if useful, then create posts as drafts or publish them from the Blog section.
Create the public pages
- Create a regular Plugi page with the route
/blogand add the Published Posts block. It lists published posts newest first; drafts are never shown. - Create another regular page with the route
/blog/{slug}and add the Blog Post block. The core router supplies the namedslugparameter to the block. - Apply the site’s normal page layout and theme to both pages. Their presentation remains controlled by the page builder and theme.
The detail block displays a not-found state for a missing, unknown, or unpublished slug. The blog blocks are not page-cached so publishing or editing content is reflected on the next request. Authors, tags, scheduling, RSS, and translated posts are not included in this release.
Keep /blog and /blog/{slug} unique among the site’s page routes.