Media Audio File- counting hits

Hi All, i'm using the media module for our radio station and I have a number of audio mp3 files on the website. I'm looking for a way to count the number of plays of each audio file and be able to use this to showcase the most popular items. 

I've looked at the statistics module, but this appears to only count at node level. I could potentially add a field to the media item, and then handle a click on the player to increment the counter - how would i do this, and is there a better way?

Thanks

Chris

The Drupal 8 version of Taxonomy Node that was in D6

Finally got a chance to begin the journey of migrating an old D6 site over to D8. I'm most likely going to utilize CSV imports to get everything over as the Taxonomy has a number of parents and children and nodes assigned to them. On D6 I could just upload a CSV with all content types, then another with the Terms and the hierarchy. Then use the Taxonomy Node Module, and it would create a node for every term. I could then come back with another CSV and create the CCK fields on those nodes. Lastly a final CSV that would add the node content, image links etc.   

For example

I want when I open an accordion menu, it will close the other accordion menus

I have created 2 accordion menu for Bootstrap.

But it doesn't work properly.

I want when I open an accordion menu, it will close the other accordion menus.

How to do this ?

Le menu `accordionSetting` doit ouvrir un accordéon à la fois dans ce même menu.

Difficulty Implementing Multi-column layout using Drupal 8 Form API

I have a requirement to build several forms of which many require 2 or even 3-column (with a search button inline after a textfield). I'm amazed at how difficult such a trivial task has become - I've been scratching my head for days with unbelievable layouts staring me in the face - none really looking like a modern web form should look...

Google page speed - Reduce the impact of third-party code - Urgent

My site having google tag manager which bring Yandex ad google tagmanager js which creating slow in google page speed

Reduce the impact of third-party code - Third-party code blocked the main thread for 660 ms
https://prnt.sc/wbh6z5

Please guide me how can i get rid of this and increase the page speed.

Get value from object in Twig template

Hi. I cannot get separate label and value from Commerce product

I wish get label and value from product.variation_sku like this:

<div>
<div>{{ product.variation_sku.label }} </div>
<div>{{ product.variation_sku.value }} </div>
</div>

but it not work. I tried change product.variation_sku.label with product.variation_sku.title but nothing. Please how can get this value?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x