Skip to content

Commit 676db93

Browse files
committed
TASK: add NoConsentPlaceholder fusion example to README
1 parent 399892b commit 676db93

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ Check your site - have you blocked all your critical services?
9999
* by using the dev tools of your favorite browser
100100
* or simply run a check on https://webbkoll.dataskydd.net/
101101

102+
### (Optional) Step 4: Better UX for blocked content elements
103+
104+
This is an example how to use the Fusion Component for a Youtube + Bootstrap markup.
105+
106+
```
107+
prototype(Your.Package:Component.Atom.Youtube) < prototype(Neos.Fusion:Component) {
108+
renderer = afx`
109+
<div class="embed-responsive embed-responsive-16by9">
110+
<Tms.Consent:Component.Atom.NoConsentPlaceholder serviceName="youtube" imageUri="" />
111+
<iframe src="about:blank" data-name="youtube" data-src="https://www.youtube-nocookie.com/embed/4DVD03IlXIs?wmode=transparent&amp;autoplay=&amp;controls=1&amp;rel=&amp;showinfo=" class="embed-responsive-item" loading="lazy" allowfullscreen="1"></iframe>
112+
</div>
113+
`
114+
}
115+
```
116+
102117
## Wishlist
103118
104119
* Add multi-site support

0 commit comments

Comments
 (0)