This forum is for less technical discussions about the Drupal project, not for support questions.

Can anyone point me towards a well documented/How to tutorial for Decoupled Drupal

I've been looking around and have run into the REST and JSON:API modules but have not had much luck for what I am looking for. Any other good resources on the matter? 

How do I remove part of the HTML code with TWIG ?

In my Drupal 8 template, I have the following TWIG code :

{{ product.variations }}

It displays the following HTML code :

How to go back to the store in the product template ?

In the product template, I can add the code below and display the store :

{{ product.stores }}

How to go up in the store to display the store fields.

For example, how to display the currency of the parent store or how to display the type of parent store ?

Is it possible to do this with TWIG from the product template ?

In the store template, I can display the country code (the store's ade = resse) with this code :

How to create a carousel for views (twitch streams)?

Hello!,

Im running a gamingclan (community) on www.luvclan.eu (drupal 7).
I have created a view wich shows the twitch stream of a person whos registered to my website and has the role twitchstreamer.
So everytime one of them starting to stream their stream is displayed on the homepage of my website (all working fine).

Now i want to create a carousel kind of option to display the streamers, but i cant find any module that allows me to display that view.
Is there an working solution to create on?.

How to display a message according to the country of the store ?

On Drupal 8, I installed Drupal Commerce 2

I want to modify the TWIG file of the products to show "Made in France", if the store country is France and made in Belgium, if the store country is Belgium.

How to display a message according to the country of the store ?

I would like to do this in the products TWIG file and in the stores TWIG file.

There is certainly a condition to be met but I do not know which one.

The code below does not affect anything.

commerce-store--online--full.html.twig :

Updating a users Role Using Mouse Click

I have gone through a few different suggestions in similar discussions but most of those centered around initial logins and such.

What I am trying to to is update a users role (add or remove, preferably add) when the click a scripted button on the page itself. The reason for this is I am using the Rules module to redirect to a page where a "notice" is being displayed. The user will need to acknowledge this notice and then continue on their merry way.

Pages

Subscribe with RSS Subscribe to RSS - General discussion