TYPO3GmbH / ext-usercentrics

This extension integrates Usercentrics (Compliance and Consent Management) into TYPO3.
GNU General Public License v2.0
4 stars 6 forks source link

Replace iframe src with uc-src #13

Open vergissberlin opened 4 years ago

vergissberlin commented 4 years ago

Feature Request

As described in https://docs.usercentrics.com/#/smart-data-protector?id=noscript-protection the src attribute in iframe tags should be replaced with uc-src.

Describe the solution you'd like It would be nice to add this replacement to a render hook. Maybe with an option to enable and disable it in the extension configuration.

Describe alternatives you've considered Otherwise I have to replace it manually for all pages and pages in the future where editors add snippets in there content.

Additional context Editor add iframe snippets from "share link" like Youtube or Google Maps.

What you think about that!? thx!

NeoBlack commented 4 years ago

nice and good idea, but I am not sure how to solve this, because not all iframes should be replaced. This is only relevant for example youtube iframes.

vergissberlin commented 4 years ago

Hi @NeoBlack,

okay, you're right. Maybe only for the fce text-media with youtube content? image The page render hook would be a good place OR override the fluid styled content template.

André