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

Use klaro service in mask elements. #7

Open
Pravin0711 opened this issue Mar 10, 2024 · 2 comments
Open

Use klaro service in mask elements. #7

Pravin0711 opened this issue Mar 10, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Pravin0711
Copy link

Hello @ErHaWeb

In my website i am using typo3 extension mask. Using this extension i created one new content elements. In this content elements i eneter youtube video url and show this youtube video on popup.

Now, my problem is i use youtube consent mechanis. so, youtube video only load when the user has given consent. But this mechanism is not working with mask elements. Because of, klaro service(record) is not present in mask elements.

can you help me? How can i use this klaro service in external elements or extension.

@ErHaWeb
Copy link
Owner

ErHaWeb commented Mar 10, 2024

I had not done any explicit tests with mask content when developing this klaro extension. I need to recreate this situation in a local dev environment to better understand the problem.

In principle, contextual content within the corresponding frame should always be automatically affected by the klaro replacements (e.g. conversion from src to data-src).

I will recreate a scenario with youtube videos and provide my findings and any necessary fixes here. Any help to reproduce your case (e.g. the mask configuration) could speed up the process.

@ErHaWeb ErHaWeb added the help wanted Extra attention is needed label Mar 10, 2024
@ErHaWeb ErHaWeb self-assigned this Mar 10, 2024
@Pravin0711
Copy link
Author

Hello @ErHaWeb

I overwrite mask typescript and its work fine for me. With update mask template according your requirements.

lib.maskContentElement = FLUIDTEMPLATE
lib.maskContentElement {
      dataProcessing {
          100 = MASK\Mask\DataProcessing\MaskProcessor
      }

      dataProcessing.11100 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
      dataProcessing.11100 {
          if.isTrue.field = tx_klaroconsentmanager_service
          table = tx_klaroconsentmanager_service
          uidInList.field = tx_klaroconsentmanager_service
          pidInList = 0
          as = contextualconsentService
      }

      settings {
          contextualconsent {
              replaceAttributes = {$plugin.tx_klaroconsentmanager.settings.contextualconsent.replaceAttributes}
              mainSectionOnly = {$plugin.tx_klaroconsentmanager.settings.contextualconsent.mainSectionOnly}
          }
      }
  }

Using abouve typoscript i geting all require klaro service in mask template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants