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

Creating a custom MediaSource plugin which works with the media library

Hi all,

I have created a media source plugin by following this tutorial -> https://www.drupal.org/docs/8/core/modules/media/creating-a-custom-media...

However as I suspected it doesn't fully work with the media library module. The library shows uploaded media but it doesn't allow one to add new media.

Upon investigation is seems I may need to create the form by extending the class

Trying to set the Image title attribute in D8

I'm trying to set the title attribute of an image (multiple) field using hook node presave. I will ultimately be using the filename without the extension but for now I'd just like to get the title to set then I should be right to build that variable.

Ajax callback not working on second form field

Hello

 Im creating a multiple dropdown form, and i need to get the first value from the dropdown.

 I have created a first callback, that is working and doing the event change, but the second one is not working, any ideas?

 My code:

Edit SOLR query base on checboxes in form

Hello,

I am using Search API and Search API SOLR modules to search with SOLR. Now I would to change the query and I already learned how to do it. Last thing I need is to allow user change query through some selection in checkboxes.

So what I need is:

1. Add checkboxes to search form (they cannot change the query, I want to it manually)

2. Find which cb are checked and manually changed the query.

[SOLVED] Change custom block content on user login

Hi everyone !

I'm getting trouble doing this simple task and after hours diving into forums, I can't find any answer. Here it is :

I've created a custom block via the UI. This block has id number 2, as seen in the URL and is placed in the header.It's sole purpose is to show a string depending on the current user data on user login.

I've created a custom module which invokes the MY_MODULE_user_login hook, in order to get the string I need to show in the previous block :

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.

Pages

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