Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion migrations/54-60/new-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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