Most decorated players widget
Description
The Most decorated players football widget lets you display information about the most decorated players from a selected tournament and season.
You can highlight decorated players and change the size of your list, as well as show contextual information about First yellow cards, Yellow cards, Red cards, and a Total number of cards.
Bind the widget to HTML DOM
You can bind the widget to the HTML DOM by two ways:
- Bind the widget without initial options. The required attribute here is "data-widgetId"
<div data-widgetId="widget-most-decorated-players"></div>
- Bind the widget with initial options. The all available options can be seen below
<div data-widgetId="widget-most-decorated-players" data-options='{...}'></div>
- The optional "data-options" attribute:
{
int seasonId: 1, // Unique identifier of the resource.
array highlightPlayers: [653], // An array of players to highlight
string limit, // How many items will be shown
string offset, //The position from which to show the players
number playerId, // Selected player with added playerOffset
string playerOffset, // Display previews (playerOffset - (3)) decorated players before player with playerId and last (playerOffset - (3)) decorated players
string lang: 'en', // the language in format like: en, bg, ru and etc.
boolean displayOriginalRank: true, // Shows the original rank if it is true, if it is false it shows a sequence number (index)
displayTeamShortNamesOnDesktop: (true/false) -> // This option replaces the team name with its short name on all resolutions
displayTeamShortNamesOnMobile: (true/false) -> // This option replaces the team name with its short name on mobile resolutions
}
Most decorated players widget in the CMS
Currently, the Sportal365 CMS offers a variety of football widgets to enable creators to add sports-specific statistics and context to their articles, videos, or galleries.
Adding the Most decorated players widget to blocky
To add a Most decorated player widget to a post (Article, Video, or Gallery):
- Select the + button to open the blocks menu.
- Then, Football widgets-->Most decorated player.
- Once the widget configuration panel opens, select a Tournament and Season in the designated boxes.
- Use the Pick columns to show the box to select card information.
- Select the players you want to highlight in the Pick players to highlight in your list box.
Note that if you donโt select a player to highlight, your list will have as many positions as you set in the Show box below.
Use the Preview details section to set the number of decorated players to show in your list, and what position you want the list to start from (e.g., position 1 or 5, and so on).
If you highlight a player in the Preview details section, you can use the Offset box to set how many players to show in your list above and below the player you have highlighted.
Video example
Updated almost 2 years ago