core/jQuery.once is being deprecated in core. https://www.drupal.org/node/3158256
1 Need help rewriting some lines of code using the core/once library.
Old:
$('.hub-recettes').find('input').once('recomandation-filter').on('ifChecked ifUnchecked', function (event) {
$('#views-exposed-form-hub-recette-page-1').submit();
});
The scenario is like this: we have a news website, every page display different type of news nodes. We have to set the site in this way that, for a single page, no news node should be duplicate while displaying.
In a content type I have an entity reference with an autocomplete field
I need to get the ID of the entity refrerence field inside the form_alter, in modification of the node.
Through the callBack I use this code and I get the ID to be able to upload
I have a problem with a setting that should occur in a cart event.
The process is as follows:
When you add a certain type of product, you can choose whether you want to take out cancellation insurance.
Once in the cart, if you delete the product, the insurance is automatically deleted (it works).
If we try to include more insurance than reserved products, the amount of insurance is automatically readjusted to the number of reserved products (it also works).