Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

[Plugin] Blog Manager

plugins

Started by Julien Perret 3 weeks ago · 2 replies · 311 views
3 weeks ago

I have published Blog Manager 2.0.0.
It is an Admin2 dashboard for listing, filtering, and editing blog posts without leaving the admin.

I have used this plugin on my own sites for a while. It started as a Grav 1.7 tool: cards and a list, filters, publish and visible toggles, and a way to create or duplicate a post without hunting through the page tree. It stayed private because it did the job.

Grav 2 changed that. The Grav team’s work on Admin2, and the care they put into Grav 2, made me want to rebuild it properly and share it.
Version 2.0.0 is that rebuild. It is an Admin2 plugin, so it needs Grav 2.0 or newer, the API plugin, and Admin2. It does not run on Grav 1.7. I will try to work that out soon.

From the sidebar you can browse posts as large cards, small cards, or a list. You can filter by text, published, visible, category, tag, language, and date.
You can create, duplicate, delete, import, and export posts, and toggle Published and Visible without a reload.
The interface is in English, French, Spanish, Italian, and German, and it follows Admin2’s dark mode.

It is MIT licensed. The first public release is on GitHub:

github.com/DrDroid-FR/grav-plugin-bl…nager-2/releases/tag/v2.0.0

Download blog-manager-2.0.0.zip and extract it into user/plugins/. The archive already contains the blog-manager folder. I have also asked for it to be added to GPM. Until that is done, bin/gpm install blog-manager will not find it.

Thank you to the Grav team for Grav 2. I would be glad to hear what you think, and what you would want next.

3 weeks ago

Blog Manager has been updated to 2.0.1.
You can find it HERE

Improvements:

  • Blog Path — Any page Grav has declared, including a nested route such as /news/blog. A numbered folder such as 01.news/02.blog still matches.

  • Folder names — A new post uses the slug, then slug-2. A duplicate uses slug-copy, then slug-copy-2. A taken import uses slug-2. The public URL no longer contains a timestamp.

  • Duplicates — Every language file gains (Copy) on the title and is unpublished.

  • Front matter — Publish, visible, and the copy title change only that line. Comments and dates stay as written.

  • Admin2 navigation — New post and Parameters stay inside Admin2.

  • Release archive — Built with git archive. tests/, phpunit.xml, and composer.lock are left out, and text files use LF.

  • Removed leftovers — The unused image route is gone. Cards use the post's own page file. The placeholder image and image cache settings are gone. A post with no raster image still uses the Grav logo.

Bugfixes:

  • Permissions — The four post actions are registered so Admin2 can grant them.
  • Post list — Title, date, category, and tag from Grav front matter are normalized before the dashboard renders them.
  • ZIP import — Hidden files, dangerous extensions, and SVG are skipped. Extraction stops before the archive can expand past 64 MB.
  • Scan — The response reports the route and the article count. It no longer includes the folder location on disk.
2 weeks ago

Blog Manager has been updated to 2.0.2 then 2.0.3
You can find last 2.0.3 HERE

Bugfixes:

  • Card buttons, filters, badges, dates, toasts, and the Scan button follow the language saved on the admin account. Titles, excerpts, and the language mark stay in the article's language.
  • A title that contains $ or \ is written as plain text. Duplicating “Save $5 on \1 deal” keeps that title.
  • false, no, off, and 0 count as off before Published or Visible is flipped, including a quoted "false".

Suggested topics

Topic Participants Replies Views Activity
Showcase · by chraebsli, 3 weeks ago
0 172 3 weeks ago
Showcase · by Paul Hibbitts, 1 month ago
0 714 1 month ago
Showcase · by Anthony L., 3 months ago
3 989 2 months ago
Showcase · by lynbor, 2 months ago
0 698 2 months ago
Showcase · by francois_fuchs, 3 months ago
3 785 3 months ago