Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify implementing content consent like Youtube/Google Maps/facebook/... #158

Open
ghost opened this issue Sep 16, 2020 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented Sep 16, 2020

Feature Request

Is your feature request related to a problem? Please describe.
Currently, implementing e.g. a consent before loading a Youtube video requires quite some custom code to interact with cookieman.

As this is becoming more common, cookieman should provide an easier solution.

Describe the solution you'd like
It should allow to use Fluid templates for the banners.

@ghost ghost added the enhancement New feature or request label Sep 16, 2020
ghost pushed a commit that referenced this issue Sep 16, 2020
ghost pushed a commit that referenced this issue Sep 16, 2020
ghost pushed a commit that referenced this issue Sep 16, 2020
ghost pushed a commit that referenced this issue Sep 16, 2020
jonaseberle pushed a commit that referenced this issue Nov 18, 2020
…aps (#158) (#167)

Co-authored-by: Oliver Kroener <ok@oliver-kroener.de>
jonaseberle pushed a commit that referenced this issue Feb 14, 2021
…aps (#158) (#167)

Co-authored-by: Oliver Kroener <ok@oliver-kroener.de>
jonaseberle pushed a commit that referenced this issue Feb 14, 2021
…aps (#158) (#167)

Co-authored-by: Oliver Kroener <ok@oliver-kroener.de>
jonaseberle pushed a commit that referenced this issue Feb 14, 2021
…aps (#158) (#167)

Co-authored-by: Oliver Kroener <ok@oliver-kroener.de>
@jonaseberle
Copy link
Member

jonaseberle commented Apr 14, 2022

An idea might be a web component wrapped around the content that is to be protected.

The content that is shown until the trackingObject is allowed could be templated and the buttons slotted in:

<cookieman-protect tracking-object="myTrackingObject">
  <template slot="cookieman-banner">
    <div>
      In order to show this content a connection with YouTube will be initiated.<br>
      This will transmit data to the USA. 
      <div slot="buttons"></div>
    </div>
  </template>
  <cookieman-protect-element tag-name="iframe" src="..." />
</cookieman-protect>

(+ the button that accepts that group/trackingObject)

@jonaseberle
Copy link
Member

Here is a gist that might help you implementing it with the current cookieman v2 (that does not have a plug-and-play integration yet):
https://gist.github.com/jonaseberle/e29bc0f82ef8328e867bf79f259fbd87

@Joe1am
Copy link

Joe1am commented Jun 19, 2024

Did anyone succesfully implemented this feature for coockieman dev/12lts?

When I tried, I got the error:

ArgumentCountError

Too few arguments to function MyVendor\MyExt\Rendering\CookiemanYoutubeRenderer::__construct(), 0 passed in /var/www/html/vendor/typo3/cms-core/Classes/Utility/GeneralUtility.php on line 3016 and exactly 1 expected

also on line 7 in CookiemanYoutubeRenderer.php YoutubeImageService is used.. but there isn't such a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants