No TagsController for admin list publish/unpublish/delete operations #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The admin list view has toolbar buttons for delete, publish, and unpublish, but no
TagsController extends AdminControllerexists to handle these tasks. OnlyDisplayController,BatchController, andImportExportControllerare 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.phpextendingJoomla\CMS\MVC\Controller\AdminControllerwith:core.deleteandcore.edit.stategetModel()override returningTagModelFiles
source/packages/com_mokoog/src/Controller/TagsController.phpsource/packages/com_mokoog/src/View/Tags/HtmlView.php(toolbar setup)source/packages/com_mokoog/tmpl/tags/default.php(list template)Branch created:
feature/48-no-tagscontroller-for-admin-list-publish