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

.install file not creating a table in db

.install file is not creating a table in my db. The same schema works for one site but does not when i try do it an other file.

block-- twig file in module folder

Hi,

I create a custom test module and in it I have a block file "/src/Plugin/Block/FirstBlock.php". 

I want to use a twig file to show the header of this block. If I use this block--first-block.html.twig in theme's template folder then it works, but placing the same file in module folder doesn't work and defaults back to classy's block.html.twig. 

Is there something I can do to place it in module folder and have Drupal recognize it? 

Thanks!

Problems after second submit of a form that includes nested forms

I am getting a default blank form when I submit a form for a second time, when the first submitted output includes more forms.

I have a search form to list items that that the user can perform actions on with item-specific forms.

On successful submission, the find form displays the items as nested forms. The item forms all work as expected and the outer find form textfield is populated with the original input, as expected.

Module hasn't been updated in 6 years - usable?

Hi

For : Drupal 7

I would like to use the Optionally control meta tag permissions individually module however it looks like it hasn't been updated in 6 years, does anyone know if it is still usable for Drupal 7? 

https://www.drupal.org/project/metatag/issues/1961354

UPDATED I found out that this is a feature and not a module and has been merged with the metatag module. So this question is resolved. 

Thanks 

Rup

Help about JS Code To Leaflet Map

Greetings everyone,

I have a leaflet view and I display streets on that view and I have another display for listing street names. I want to create a script, which helps when mouse cursor hovers on a street name in the list the poly-line which belongs to that street should be bold.

I tried to combine these two tutorials for this issue:

http://www.geodemocracy.com/geofield_d8/web/geoplaces-map-leaflet

$current_user is always anonymous

Hello, I am new to the forum, and I apologize if I should have posted this elsewhere. In a specific case, I have a problem acquiring the logged on user (Drupal 8.7.8)

I have defined the service:

sipos_hello.redirect_subscriber:
   class: Drupal\sipos_hello\EventSubscriber\SiposHelloRedirectSubscriber
   arguments: ['@current_user']
   tags:
     - { name: event_subscriber }

Pages

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