As per title, the AMS installer now includes auto creating a "Latest articles" widget that is displayed on the "What's new" page. Keep in mind, you've been able to do this on your own since XF 2.0.0.
Its just a widget like any other widget. If you don't want it displayed on the What's New page, you edit the widget and uncheck the display position or delete it since it's only added to the What's New page.
The installer (and upgrade step for AMS 2.2.32) creates the widget with its own unique widget key (so that it doesn't conflict with any other "latest articles" widgets that you might have created on your own).
The custom settings are
Its just a widget like any other widget. If you don't want it displayed on the What's New page, you edit the widget and uncheck the display position or delete it since it's only added to the What's New page.
The installer (and upgrade step for AMS 2.2.32) creates the widget with its own unique widget key (so that it doesn't conflict with any other "latest articles" widgets that you might have created on your own).
The custom settings are
- Position What's new overview
- Position order 200
- Limit 10
- Style List View Layout Type
- Require cover image or content image TRUE
PHP:
'xa_ams_whats_new_overview_lastest_articles' => function($key, array $options = [])
{
$options = array_replace([
'limit' => 10,
'style' => 'list-view',
'require_cover_or_content_image' => true
], $options);
$this->createWidget(
$key,
'xa_ams_latest_articles',
[
'positions' => ['whats_new_overview' => 200],
'options' => $options
]
);
},
Upvote
0