diff --git a/migrations/54-60/new-deprecations.md b/migrations/54-60/new-deprecations.md index e98755e1..93b47d59 100644 --- a/migrations/54-60/new-deprecations.md +++ b/migrations/54-60/new-deprecations.md @@ -48,4 +48,27 @@ Replacement: New `postStore()` function which has an additional optional paramet PR: https://github.com/joomla/joomla-cms/pull/40613 File: libraries/src/MVC/Model/AdminModel.php Description: With the new possibility to batch remove a tag, the `batchTag` function of class `\Joomla\CMS\MVC\Model\AdminModel` has been deprecated and will be removed in 7.0. -Replacement: New `batchTags` function which has an additional optional parameter `$removeTags` (default value is `false`) indicating whether the tags in parameter `$value` have to be removed. +Replacement: New `batchTags` function which has an additional optional parameter `$removeTags` (default value is `false`) indicating whether the tags in parameter `$value` have to be removed + +### Featured articles are integrated into articles + +Since the first Joomla version, the code for featured articles was a duplicate of the articles code, with only minor differences. +Featured articles are integrated into articles. Changes only affect the backend; nothing changes in the frontend. + +PR: https://github.com/joomla/joomla-cms/pull/43907 + +Deprecated: `Joomla\Component\Content\Administrator\Model\FeaturedModel` +Use `Joomla\Component\Content\Administrator\Model\ArticlesModel` with `filter.featured = 1` instead. + +New code: +```php + $model = Factory::getApplication()->bootComponent('com_content')->getMVCFactory()->createModel('Articles', 'Administrator', ['ignore_request' => true]); + $model->setState('filter.featured', 1); +``` + +New menu link to featured articles: `administrator/index.php?option=com_content&view=articles&filter[featured]=1` + +Deprecated: `Joomla\Component\Content\Administrator\Controller\FeaturedController` +Use `Joomla\Component\Content\Administrator\Controller\ArticlesController` instead. + +Deprecated without replacement: `HtmlView` - View class for a list of featured articles