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

Opening a route in a Modal not working

I have this route that is suppose to render a block and two view blocks and then display them in a modal.

Originally, I had this route created in the Pages section of Structure, but then decided to create it in my module using this tutorial

Create a modal from an existing URL

You can open any page in a modal from by making the link like:

<a class="use-ajax" data-dialog-type="modal" data-dialog-options='{"dialogClass": "my-modal"}' href="my/custom/page">
  {{ 'Open Modal'|t }}
</a>

You can create an endpoint that uses a controller method that responds by opening a modal like:

Layout builder override with contact form dont' work

Hello, I would like to modify the layout of the contact form and just add an image. Unfortunately, I can't do it. My block is well created, there are two options, I select both and in custom display settings, I created a custom mode view. 
I can't do it. I have just tested layout builder for articles for example and there no problem but for the contact form I can't do it. I followed what is written in the layout builder documentation, however.
Does anyone have an idea ?
Thank you very much for your help.

In checkout page, when user get register he should get the email messages.

Hi,

In checkout page, when user get register he should get the email messages. i try with drupal register page email are going but when i am trying with checkout register page email is not going. in both the register page only difference is username field is replace with email id.

when user order the product, he get the email but register in checkout he not get the email.

Ckeditor Style does'nt work

Hello,

I have installed drupal with a subtheme for mayo. Now i try to implement style for ckeditor but it doesn't work :

In /admin/config/content/formats/manage/, I configured the button style and wrote this in the dropdown :

p.opaque-misc-link | test

In my css subtheme :

p.opaque-misc-link {
     opacity: 0.35;
    text-align: right;
}

When i create a new content, i can see my new style named 'test' but i can't apply it.

My configuration :

- Drupal 8.9.7

- Python/2.7.5

- PHP/7.4.7

Create multiple nodes from multiple value entity reference field on saving a node

Hi,

I would like to create multiple "versions" of a node automatically on saving based upon a user's selection in an entity reference field.  For example, it would be like having a content type Article which has entity reference field Article Type.  On the Article node add form, the user would select which Article Types they want to create (say, "short", "medium", or "long").  Then on save, a separate node for each Article Type would be created.  Code thus far (but still only results in saving a single node):

Pages

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