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

Add a Form to the Block Configuration for a drupal Block in Gutenberg

Hello!

Context:

I took the Gutenberg example Block and I put it in my custom module, so I have \modules\custom\my_module\my_module_blocks.

In my_module_blocks i have a yml file my_module_blocks.info.yml, and I installed My Block in Extensions.

So my question is:

I'm in Gutenberg, I add the block my_module to my page, and at the right of the page, on the side bar, there is a Block Tab.

clic on image link counter

hi everyone, i have my module banner that contains image which is linked and display on site, what i need to add my module to see how many times someone click on my image? i need to see statistic drupal 8

node_delete_multiple issue

I am creating files to be run in different situation using scheduled cron jobs. These are mainly for either cleaning nodes, updating or doing other calculations automatically. The drupal site is running in devdesktop.

I have a few of them and so far I have no problem making them do what they should. They all have the same structure and format, using the same basic db functions or node_delete_multiple.

Remove form display of a BaseFieldDefinition

Hello everyone,

Few weeks ago, I created a BaseField during a hook_update, like this :

Database query MAX(id)

Thank you for reading this topic.

I'm trying to run a query using the database api:

https://www.drupal.org/docs/8/api/database-api/dynamic-queries/introduction-to-dynamic-queries

The query is:

$get_key = $this->connection->query("SELECT * FROM tablekeys WHERE id IN ( SELECT MAX(id) FROM tablekeys WHERE key = 'System' GROUP BY ip) ORDER BY id DESC");

The query returns my desired results.

Media upload, get node data of attached node

I have played around with some custom tokens, see code above. I want to document that for https://www.drupal.org/project/filefield_paths 

The problem i have is that i can not get any node data like $nid or the node object of the node the media file is beeing attached to.

It is a node with an entity reference(media) and i wanted to create a custom token using taxonmy terms of that node. But that is impossible if i can not get any node data to process.

Pages

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