πŸ‡©πŸ‡ͺGermany @quotientix

Account created on 22 June 2007, about 17 years ago
#

Recent comments

πŸ‡©πŸ‡ͺGermany quotientix

The patch doesn't work for me. I did a workaround via CSS and Twig:

In the paragraph-Template I set the class:

'lang-' ~ paragraph.get('langcode').value

Via CSS I hide the "other" language:

html[lang=en] {
  .paragraph.lang-de {
    display: none !important;
  }
}
πŸ‡©πŸ‡ͺGermany quotientix

To fix this, I changed the code in addtocal-download.js to this:

Drupal.behaviors.addtocalDownload = {
    attach: function (context, settings) {
      // Trigger file download for any data links generated by addtocal.
      console.log("vor allem");
      $(once('addtocal', '.addtocal-container', context)).each(function () {
        $('.addtocal-link a', context).click(function (event) {
          var href = $(this).attr('href');
          if (/^data:/.test(href)) {
            var title = $('h1').text(); // My node-title
            // var filename = 'addtocal';
            if (/^data:text\/calendar/.test(href)) {
              title += '.ics';
            }
            download(href, title);
            event.preventDefault();
          }
        });
      });
    },

    download: download
  };

Maybe that helps for now.

πŸ‡©πŸ‡ͺGermany quotientix

Deactivating the caching in the view worked for me. Thanks!

πŸ‡©πŸ‡ͺGermany quotientix

Patch in #64 works for me in 10.2.2 - thanks for the team effort here!

πŸ‡©πŸ‡ͺGermany quotientix

Patch #50 is working for me. Thanks for the work!

πŸ‡©πŸ‡ͺGermany quotientix

Have you found a solution @RFord?

πŸ‡©πŸ‡ͺGermany quotientix

Thanks for posting the module! +1

πŸ‡©πŸ‡ͺGermany quotientix

Thanks so much for posting this @leisurman!
Seems to work for me exactly like you described.

πŸ‡©πŸ‡ͺGermany quotientix

Drupal 9.5.2 and Matomo 1.20, PHP 8.1.13 breaks the site for me.
Rerolled to 1.19 to get it back up running.

Production build 0.69.0 2024