This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Drupal 8: Notify message is not translated

I am using message & message_notify contrib module.

I have enabled language module, It has By default English (en), Korean (ko), Japanese (ja).

I have translate below template in Japanese language as well.

category based cookie consent

I am trying to use the EU Cookie Compliance (GDPR Compliance) module.
I wish to have seperate cataegories which users can agree/decline and for javasscripts associated with each category to be loaded or not loaded accordingly.

However this is not working, the module is not adding the javascripts which have been consented to 

This is what I have tried to do

Flickity carousel - as quiz with view filters

Hello,

Currently working on a digital resources page for a library. Like many libraries, this library has a digital library, with multiple online resources that link out. Each digital library resource has its own clickable icon in a grid format. Each digital resource is its own node, and they have been placed in a view. There has also been a separate view placed on the digital library page which is a flickity carousel with a view placed inside, with each individual resource node filter placed in each slide of the carousel.

add image field to rss views Drupal 8

Hi, 

I would like to add an image field which will be url to the image in my rss views however I only get these options when clicked on fields | settings:

Title field, link field, description field, creator field, publication date field. 

I also tried using this patch - https://www.drupal.org/project/drupal/issues/2511878 but no luck. 

and tried to create a field in RSSFields.php but again no luck. 

Does anyone have any other better way?

Allow off-canvas dialog to be rendered on the left of the page

Hi,

this is my current code for off_canvas. It block on the right side of the page(off-canvas), is there a way to open it on the left of the page?

Entity with composite key

Hello,

In my site, I let my Users to redeem coupons from a list of available coupons stored in a database table.

I would like to know what is a good way to implement this.

In a DB usually you will have a table like user_redemption to store the user_id and coupon_id as a composite key.

How would you do that in Drupal 8?

Should I create two custom Entities: Redemption, Coupon? And then use Field Definition of 'entity_reference' to link them?

Also I will have a large amount of coupons, what is a good way to insert them to my entity tables?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions