I created a custom module for Drupal 8 and Drupal Commerce. It is used to display a link "Accept the conditions of sale" in the purchase funnel during an order.
This link displays a modal window with the rendering of a page.
I have created a "terms and conditions" display mode in my store types. I want the link to show the store's rendered "terms and conditions" entity in a modal window.
So I want to make the entity store instead of showing a page in the modal link.
I want an entity where I can store various bits of data (using fields) and link that data to multiple page nodes. But that data should not be visible to anyone - it is more for adding and displaying data programmatically or via Views. What's the best way to go about this?
Do you now how I can build complex table in Drupal? I want to get something like this (in upload picture). I have nodes with fields: nid, code, name, date, sum. Thanks!
What is a good way to include JS and CSS files in a module using the .libraries.yml file that have file names as follows :
abc-61c284b39224e2b2e4d5.css
abc-61c284b39224e2b2e4d5.js
The JS and CSS are generated using contenthash which would change on every build of the files if their content changes. How can I include these files in my pages using the file name as only : abc without caring for the contenthash ?