File upload Javasript handle

Hello,

I have my custom Drupal 8 module used to upload csv file and doing something after uploading.

Only use javascript to handle form upload and ajax.

Here is my-upload-form:

[SOLVED] Trimming Teaser view mode on the Front Page

Edit: I solved this myself. The issue was my failure to understand Drupal. I had only edited the teaser length for one content type, but the majority of posts on the front page were another content type. No problem with Drupal.

Uploading Video to a Drupal 8 site

Hi

I want to know my options about showing video on my site.

The module Video Embed Field just stores a link to an external video (such as one stored on Youtube).

I want a module that allows me to upload a video to my server and creates a link to it there. A module that allows me to upload a video in the same way I can upload an image now.

There is a module called Video but I am not sure if that will allow me to upload a video the way I have specified.

window.drupalSettings not being initialized

I'm having a problem with the CKEditor not showing for anyone but administrator, and I think I've tracked down the root cause.

In drupalSettingsLoader.js, the call to document.querySelector returns null for everyone but admins. When I view the source, I can see that the JSON code is there (for all users) but for some reason it isn't loading - on any page - for plain old authorized users.

Any ideas?

Thanks.

View to product commerce drupal8

Hello,

Do you know if I can add a views to SINGLE product in Commerce, Drupal8? I need to add a few images to every product and i want to do it in grid. If not, is there any module to make it look nice?

Thank you,
Maya

changed values in pre-process hook are not getting reflected in twig

Hi 

I am new to Drupal theming. I have a scenario where 
I need to toggle the Left Menu display based on user action via Javascript. 

Which means, 
(1) Left Menu should be hide with out page refresh, 
(2) if I hide Left Menu in page-1 and navigate to page-2, in  page-2 Left Menu should not be visible.

to achive this, i created a cookie via javascript under path '/'.

and reading the cookie and storing that cookie value in a variable in theme_prepprocess_page()

based on the variable value in the twig template hiding the Left Menu. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x