Skip to main content
Yzmir Ramirez's user avatar
Yzmir Ramirez's user avatar
Yzmir Ramirez's user avatar
Yzmir Ramirez
  • Member for 8 years, 6 months
  • Last seen more than 3 years ago
awarded
awarded
awarded
awarded
comment
How to set Disqus Share link to window.location.pathname + window.location.search?
I'm not vain and will not accpt my own answer. If someone has a better solution I'll accept theirs.
Loading…
comment
How to set Disqus Share link to window.location.pathname + window.location.search?
If all else fails I'm going to research how to disable the Share button.
comment
How to set Disqus Share link to window.location.pathname + window.location.search?
I don't want to do modify disqus.js ... I know about not overwriting contrib files.
Loading…
comment
views - remove duplicates based on field value
Is this really a Drupal question? Seems more like a database schema design question. Am I missing something?
awarded
comment
How do I include a Javascript Library from a Twig Extension in Drupal 8?
I feel bad accepting my own answer but this is what I went with to production. Its works.
comment
Multisite: Other link color (css)
Too bad the module isn't available in Drupal 8
revised
How do I include a Javascript Library from a Twig Extension in Drupal 8?
Forgot to add the $paths variable ->get() call
Loading…
revised
Loading…
comment
comment
Is it possible to include external libraries in a twig template?
I don't see the attach_library twig extension having a second parameter. Look for the implementation of the twig extension above in Drupal\Core\Template\TwigExtension.php in the function attachLibrary. What version of twig are you using? I'm in Drupal 8.2.1.
revised
How do I include a Javascript Library from a Twig Extension in Drupal 8?
Added hook_rebuild() to clear the module's setting
Loading…
comment
How do I include a Javascript Library from a Twig Extension in Drupal 8?
I will not accept my answer because the above solution doesn't get cleared when the widget no longer exists on a page (in my case a View). Oh, also notice I used an inline_template instead of creating another .html.twig file. The template used is actually much more complex that what I showed. Technically don't need to add a '#context', I know.