how to add content id to url link field via token

I may be attacking this in the wrong way, i am open to suggestions. 

I have a content type of artists  and a content type of painting. 

i want to add a link field on the artist page that will go to a view to show all paintings by that artist. 

so i set up a view and added a contextual filter for artist  so far so good. 

 in the view if i fill in the preview with the content id of the artist i get the results i want 

but i want to add the link to the artist page and have the content id added onto the url automatically 

Address module not showing in Available updates report

Drupal 8.8.2  address 8.x-1.7

I installed address and its library ( address is working )

when i go to reports > Available updates 

address does not show in the modules list. 

it does exist in the drupal/modules directory 

is this expected behavior? 

E-commerce Website: Llangollen Brewery

E-commerce Brewery Website: Llangollen Brewery

A simple e-commerce site for a local brewery manufacturing craft ales and craft beers. Turtlereality web design specialise in creating highly effective e-commerce websites for small to medium sized companies.

Sectors: 
E-Commerce
Small business

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?

drupal 8: having multiple value for a custom field

Hi every body. We need to create a custom field that has 3 parts: field label that static, field type that is Taxonomy terms and field value that is input string. How we can create this kind of field?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x