Releases: gp247-plugin/News
Releases · gp247-plugin/News
Release list
2.0.5
Fix getList arrOpt filter, news content lang keys; bump to 2.0.4
- Models: count($arrOpt = []) always reset the option array to empty, so getList() ignored every passed filter; use count($arrOpt). - news_content view: use core lang keys (admin.cancel/reset/update/submit/active/inactive/no_records) instead of the non-existent admin.core.* keys. - Bump plugin version 2.0.3 -> 2.0.4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2.0.3
2.0.2
2.0.1: Register sitemap provider with key/label so admin can toggle it
Updates the seo_sitemap_providers registration to the new
{key, label, callback} shape (s-cart ADR seo_plugin-sitemap-extension,
amended 20260711T135121) so the "SEO" admin screen can list and
toggle this plugin's sitemap contribution independently. Reuses the
manifest's own configKey/name fields — no new translation string
needed just for this.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2.0: Upgrade News plugin admin/front for GP247 v2 compatibility
Admin (fatal error -> working): NewsCategoryController/NewsContentController returned views extending gp247-core::layout and gp247-core::screen.list, both physically removed in the AdminLTE-to-TailAdmin cutover. Ported both screens to Livewire (ResourcePanel + HasMultilingualDescriptions, mirroring GP247\Shop\Admin\Livewire\CategoryManager) with TailAdmin views. Legacy route names kept identical (admin_news_category.*, admin_news_content.*) since installed sites already have AdminMenu rows pointing at them. Removed the now-dead legacy controllers and their now-unused custom validators. Front (unstyled -> styled): views extended block_main directly, discarding GP247Front's container/breadcrumb/sidebar-block scaffolding, and used Bootstrap-era classes with no matching compiled Tailwind CSS. Switched to block_main_content_center (mirroring screen/shop_item_list.blade.php) and common/item_single.blade.php (already compiled); the previously-used common/item_single_long.blade.php was itself dead code from the removed template. news_detail gains a title heading using the same rich-content wrapper classes as shop_product_detail's description tab. Bump gp247.json to version 2.0.0 / requireCore 2.0 to reflect the migration. Verified end-to-end: installed on a dev DB, all 9 routes register correctly, all 3 front pages return 200 with expected content, admin routes redirect to login cleanly (no more fatal 500), no exceptions logged.