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

Custom form: required fields and tabs: missing value not shown

Hi,

using (mostly) last D9 version, I modify a form (form_alter()) to add two required text fields.

These two new fields are inside a vertical tab. It works fine, appart when a missing required value is on the hidden tab.

For shown field (and all other "standard" fields) when required value is not filled the save button does nothing, plus a message "Please fillout this field" is shown, plus the corresponding field is surrounded by a blue line (at least in my theme).

D8 - website

Hello,

we've got a website developped with drupal 8. We use memcache to increase performance. But randomely we've got an increasement once a week or less or more, and the website is breaken. Is there an expert in drupal cache to help us?

Thanks a lot.

How can I edit forum-list.html.twig and get changes?

Hi!

I'm trying to change the structure from forum-list.html.twig in Forum module, but when I do it or even delete all in the file, I don't get any change in www.example.com/forum

Someone can help me?

Thanks!

How to change node translations upon changing of the English version of the node?

Hello.

There is a problem. There is a multilingual node type with many translations? English is the default language. 

And one needs to change the content of a field on some (not all) non-English translations upon changing this field on the English translation of the node.
I'm trying to do it using the hook_node_update hook (a variant of the hook_entity_update hook).

How to override ContextualLinks pre-render?

When I see the source of the rendered page,  I see that contextual links are rendered in a <div> element.

'div' is a block element.'span' is inline element. I would prefer a span element here, in order to have proper display.

I see the following snippet in /core/modules/contextual/src/Element/ContextualLinksPlaceholder.php

public static function preRenderPlaceholder(array $element) {

...

...

Seeking a tutorial

Hi All

is anyone aware of where I can find a tutorial for module development for something like artist, album record hierarchy please ( Drupal 8/9)

I want to learn how to do add album to artist from the artist page and add record to album from the album page, so any assistance on where to go for a tutorial to make this kind of a custom module, or even where to get me started so I could then write my own tutorial would be fantastic

many thanks

Pages

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