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

How to set up sending CSRF token automatically with every request?

Hi, I have started coding recently. Would be really glad to listen to your advise. I have a problem with my website. I can not verify the authenticity of the CSRF token when I send a POST request. I solved this issue by adding authenticity_token with every request (using Vue.js and Ruby on Rails). My code:
let at = document.querySelector ("meta [name = 'csrf-token']"). getAttribute ('content')
this. $ set (this, 'authenticity_token', at)
this. $ http.post (/ api / example, {authenticity_token: this.authenticity_token}).

How to offer shipping costs for orders over $ 50 ?

Hi, there is no recent documentation for the "Commerce Shipping" module.
How to offer shipping costs for orders over $ 50 ?
I don't see any settings in the shipping methods.
It would be nice to have a check mark to offer shipping costs and a text box to enter the order amount.

Distributions

Are distributions installed after the core Drupal 8 site is up and running, or are distributions installed as the initial installation of Drupal.

Typically, how long does it take to install a distribution. I already have a Drupal 8 site installed with my hosting provider and want to install a particular distribution.

Thanks

How to limit the results of a page viewed to content created since the flag date ?

I created a custom module to display a news feed. When a content is created, the module will create a "Message". The user "Flag" the parent "Group" and receives the messages.

My problem :

When a user flags a "Group", he receives all the "Message", even the "Message" before the Flag.

I want the user to only receive "Message" from the date of the Flag.

You must therefore filter the view like this:
The "Message" created after the Flag date are displayed.

How to limit the Message to a role ?

I installed the Message module on my site. I want to set up ads for certain roles. I want to create messages and select the roles that can see the message.

How to limit messages to a role? I don't want to limit the type of message, I want to limit only the message.

My pagination no longer works :-(

Hi, my pagination no longer works :-(

Sometimes it appears, sometimes it disappears. I do not understand what is happening.

There are no errors in the logs and no errors in the console.

Can you help me find the cause of this bug ? Thank you

Here is a page of my site with a pagination, you have to reload the page several times to see the problem :

https://dev.s1biose.com/fr/article

Pages

Subscribe with RSS Subscribe to RSS - General discussion