As per title, the Showcase installer now includes auto creating a "Latest items" 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.
It's 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. This is basic XF Widgets 101.
The installer (and upgrade step for SC 3.2.33) creates the widget with its own unique widget key (so that it doesn't conflict with any other "latest items" widgets that you might have created on your own).
The custom settings are
It's 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. This is basic XF Widgets 101.
The installer (and upgrade step for SC 3.2.33) creates the widget with its own unique widget key (so that it doesn't conflict with any other "latest items" 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_sc_whats_new_overview_lastest_items' => function($key, array $options = [])
{
$options = array_replace([
'limit' => 10,
'style' => 'list-view',
'require_cover_or_content_image' => true
], $options);
$this->createWidget(
$key,
'xa_sc_latest_items',
[
'positions' => ['whats_new_overview' => 200],
'options' => $options
]
);
},
Upvote
0