Content Blocks
The Editor V2 creates liveblog entries as an array of content block. Each block has at least the following fields:
_type
: indicating what kind of content block it is.local_id
: a unique id of the content block
Tik::Model::Content::RichTextContentBlock
Displays a block of HTML.
{
"_type": "Tik::Model::Content::RichTextContentBlock",
"local_id": "",
// HTML Formated rich text
"text": ""
}
We only allow a specific subset of HTML Tags, all other tags will be stripped out!
<!-- target and rel will be added automatically! -->
<a href="" target="_blank" rel="nofollow">...</a>
<blockquote>...</blockquote>
<b>...</b>
<strong>...</strong>
<i>...</i>
<em>...</em>
<u>...</u>
<strike>...</strike>
<s>...</s>
<del>...</del>
<h1>...</h1>
<h2>...</h2>
<h3>...</h3>
<h4>...</h4>
<h5>...</h5>
<ul>...</ul>
<ol>...</ol>
<li>...</li>
<div>...</div>
<span>...</span>
<p>...</p>
<br>
Tik::Model::Content::MultiMediaContentBlock
Displays one or more pictures/videos. For more details about the data structure refer to the Media Documentation.
{
"_type": "Tik::Model::Content::MultiMediaContentBlock",
"local_id": "",
// List of media items to display
"items": []
// Either "slideshow" or "default", if null or empty string "default" is used
"display_type": ""
}
Tik::Model::Content::WebEmbedContentBlock
Displays either a rich link or an embed (depending on target and consent settings)
{
"_type": "Tik::Model::Content::WebEmbedContentBlock",
"local_id": "",
// The URL or Embed Code the of the target
"url": ""
// Contains information obtained by oembed lookups (plus tickaroo proprietary additions)
"oembed_json": ""
}
Tik::Model::Content::QuoteContentBlock
Special way to display an author and quote
{
"_type": "Tik::Model::Content::QuoteContentBlock",
"local_id": "",
// Plain text quote
"text": ""
// Plain text author name
"author": ""
// if set, author will link to this URL
"source": ""
}
Tik::Model::Content::EmojiContentBlock
Displays a big emoji followed by rich text HTML.
{
"_type": "Tik::Model::Content::RichTextContentBlock",
"local_id": "",
// The UTF code of the emoji to display
"emoji": ""
// HTML formatted rich text
"title": ""
}
Tik::Model::Content::PlayerCardContentBlock
Displays a big emoji followed by rich text HTML.
{
"_type": "Tik::Model::Content::PlayerCardContentBlock",
"local_id": "",
"title": ""
// The player to display
"player": {
"_type": "Tik::Model::Player",
"_id": "",
"name": "",
"image": "",
"birthdate": 132456789,
"gender": "m"|"f"|"o"
"number": "",
"position": "",
"weight": 0,
"height": 0,
}
}
Tik::Model::Content::SportEventContentBlock
Displays a sport event (goal, penalty, etc.) inline with other content. For more details about the data structure refer to the Sport Event Documentation.
{
"_type": "Tik::Model::Content::SportEventContentBlock",
"local_id": "",
"sportstype": ""
"event_type": "",
"title": "",
"team": {},
"players": [],
"phase": {},
"time_of_play": "",
}
Tik::Model::Content::ScoreboardContentBlock
Displays a scoreboard within your liveblog. For details about the scoreboard structure refer to the Scoreboard Documentation.
{
"_type": "Tik::Model::Content::ScoreboardContentBlock",
"local_id": "",
// The scoreboard to display
"scoreboard": {}
}
Tik::Model::Content::PollContentBlock
Displays a poll within your liveblog
{
"_type": "Tik::Model::Content::PollContentBlock",
"local_id": "",
// Unix timestamp in seconds when the poll closes
"closes_at": 123456789,
// Question Text:
"question": "",
// Answers
"answers": [
{
"_type": "Tik::Model::Content::PollAnswerContent",
"local_id": "",
"text": ""
}
]
}