No TagsController for admin list publish/unpublish/delete operations #48

Closed
opened 2026-06-21 14:54:34 +00:00 by jmiller · 1 comment
Owner

Problem

The admin list view has toolbar buttons for delete, publish, and unpublish, but no TagsController extends AdminController exists to handle these tasks. Only DisplayController, BatchController, and ImportExportController are registered.

Clicking "Delete" or toggling publish status in the admin list will produce a Joomla task routing error.

Fix

Create source/packages/com_mokoog/src/Controller/TagsController.php extending Joomla\CMS\MVC\Controller\AdminController with:

  • Proper CSRF validation
  • ACL checks for core.delete and core.edit.state
  • getModel() override returning TagModel

Files

  • New: source/packages/com_mokoog/src/Controller/TagsController.php
  • Related: source/packages/com_mokoog/src/View/Tags/HtmlView.php (toolbar setup)
  • Related: source/packages/com_mokoog/tmpl/tags/default.php (list template)
## Problem The admin list view has toolbar buttons for delete, publish, and unpublish, but no `TagsController extends AdminController` exists to handle these tasks. Only `DisplayController`, `BatchController`, and `ImportExportController` are registered. Clicking "Delete" or toggling publish status in the admin list will produce a Joomla task routing error. ## Fix Create `source/packages/com_mokoog/src/Controller/TagsController.php` extending `Joomla\CMS\MVC\Controller\AdminController` with: - Proper CSRF validation - ACL checks for `core.delete` and `core.edit.state` - `getModel()` override returning `TagModel` ## Files - New: `source/packages/com_mokoog/src/Controller/TagsController.php` - Related: `source/packages/com_mokoog/src/View/Tags/HtmlView.php` (toolbar setup) - Related: `source/packages/com_mokoog/tmpl/tags/default.php` (list template)
jmiller added the bugproduction-readiness labels 2026-06-21 14:54:34 +00:00
Author
Owner

Branch created: feature/48-no-tagscontroller-for-admin-list-publish

git fetch origin
git checkout feature/48-no-tagscontroller-for-admin-list-publish
Branch created: [`feature/48-no-tagscontroller-for-admin-list-publish`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteOpenGraph/src/branch/feature/48-no-tagscontroller-for-admin-list-publish) ```bash git fetch origin git checkout feature/48-no-tagscontroller-for-admin-list-publish ```
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteOpenGraph#48