• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented A "Latest Blog Entries" Widget is now added to the "What's New" page during install (and via this upgrade).

Bob

Developer
Staff member
As per title, the UBS installer now includes auto creating a "Latest blog entries" 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 UBS 2.2.35) 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
All other settings are default as set by the Widget Definition.

PHP:
            'xa_ubs_whats_new_overview_lastest_entries' => function($key, array $options = [])
            {
                $options = array_replace([
                    'limit' => 10,
                    'style' => 'list-view',
                    'require_cover_or_content_image' => true
                ], $options);
                   
                $this->createWidget(
                    $key,
                    'xa_ubs_latest_entries',
                    [
                        'positions' => ['whats_new_overview' => 200],
                        'options' => $options
                    ]
                );
            },
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Back
Top