We are working on a decoupled project with Drupal as our backend and Angular as our front-end. Everything is nearing completion but certain (dynamic, as in created in Drupal) pages require links to different pages of the angular app.  For example:...
I have a site on Drupal 8 and I update a block view with the following code :  (function ($, Drupal) {    'use strict';    setInterval(function() {     $('.region-navigation-logo .view-display-id-block_3').trigger('RefreshView'...
I have a Drupal 8 site with Bootstrap 3 theme.  I created a homepage with a newsfeed. Whenever there is a publication on the site, it generates a message in the newsfeed. The messages can have the status read or unread.  I want that when the .action-...
I am building a form in Drupal 8 that contains a sortable jQuery accordion.    I have the accordion working and am able to add new elements to the accordion utilizing a submit button with an AJAX callback.  However, when I reorder the elements in the...
I am creating standalone html/javascript application which should communicate with REST API of Drupal 8.6.2. My app uses Vue.js, so ajax requests are sent by Axios.  I want to be able to operate the app both on the same domain and via CORS from anoth...
I'm trying to modify some div's classes inside an iframe using my own css and change the Twitter Block | Drupal 8 look. But, I've faced a lot of error such as $ is not a function etc....I thought that my js was loaded too fast (before my...
I have done this but it still works like a ticker. Please help me out thanks in advance.  var owl = $('.simple'); owl.once('js-trigger').owlCarousel({     loop: true,     autoplay: true,     autoplayTimeout: 650,     autoplayHoverPaus...
Is it possible to make a QuickEdit to work when fetching a view restfully and make quickedit to work of that response? I have AJAX call that displays taxonomy hooked to a view. The restfull response from the view:  [     {        "colors": &#...
I am sorry if my problem is stupid. My jQuery code works only when I am logged in as admin. When I am not logged, it is not working and I have an error in console: Drupal is not defined.  My main.js file looks this way:  (function ($, Drupal, window,...
I'm Using Drupal 8 as a headless CMS with Gatsby generating static pages.    In Drupal I have set up some node Types (Article, Image, other...). All entities have brand and category term relationships.  category is a single selection and brand is...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.