Review Page Header 1
The Review Page Header 1 widget displays the header of a brand review page: brand logo, rating, a “guests are looking at this review” line, the welcome bonus and a call-to-action button. The brand is selected with the mandatory cloakedlink attribute; if it is empty, nothing is rendered. For now the widget outputs its backend data as JSON — the UI is delivered separately (NEX-21156).
Full attributes (all options)
guestnumber is injected in the Sanity translation wgt-reviewpageheader1-guests (text containing #guestnumber#). The header title comes from the translation key brandkey; here brandkeytext is also set, so it wins (see the dedicated scenarios below).
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="fr"
country="CA"
rating="4.5"
brandkey="wgt-reviewpageheader1-brand"
guestnumber="147"
ctakey="cta-claim-bonus"
ctatext="Parier Maintenant"
ctacolors='["#1F9E1B", "#00893B"]'
ctahovercolors='["#11990C", "#02720E"]'
anchorid="review-header"
rel="nofollow"
target="_blank"
trackinglinktarget="homepage"
brandkeytext="Our verdict on LuckyMate"></nw-blocks>
Neither brandkey nor brandkeytext is passed: the default translation key wgt-reviewpageheader1-brand is used. The translation can contain ##brand_name##, which is automatically replaced by the brand name.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="en"
country="uk"></nw-blocks>
Header title: brandkey overrides the default key
brandkey is a translation key. When defined it replaces the default key; ##brand_name## inside the selected translation is replaced by the brand name.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="en"
country="uk"
brandkey="wgt-reviewpageheader1-brand-alt"></nw-blocks>
Header title: brandkeytext overrides brandkey
brandkeytext is a free text. When defined it overrides brandkey (and the default key); no translation is read and the text is displayed as-is (##brand_name## is NOT replaced).
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="en"
country="uk"
brandkey="wgt-reviewpageheader1-brand-alt"
brandkeytext="Our verdict on LuckyMate"></nw-blocks>
Minimal attributes (defaults applied)
Only cloakedlink is required. Defaults: rating 5.0, rel="nofollow", target="_blank", no guests line, dynamic id, tracking link without a target.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"></nw-blocks>
Rating fallback (invalid or greater than 5)
A rating that is empty, not a number or greater than 5 falls back to 5.0.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
rating="7.2"></nw-blocks>
Guests line with CTA text from a translation key
ctakey is resolved from Sanity translations; ctatext, when set, overrides it.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="en"
country="uk"
guestnumber="212"
ctakey="cta-claim-bonus"></nw-blocks>
Restricted jurisdiction (Light Mode)
In a restricted country promotional content (bonus) is stripped. Simulate with ?country=BE on the showcase URL.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink="luckymate-casino"
language="nl"
country="BE"
guestnumber="147"></nw-blocks>
cloakedlink is mandatory: when empty, the header is not rendered at all.
Expand me...
<nw-blocks
id="reviewpageheader1"
cloakedlink=""
language="en"
country="uk"></nw-blocks>