TransWikia.com
  1. All Categories
  2. Drupal Answers

Drupal Answers : Recent Questions and Answers (Page 14)

Find answers to your questions about Drupal Answers or help others by answering their Drupal Answers questions.

how to add an event subscriber when the user reaches the login form

I am new on Drupal 8 , I have implemented a hook 'hook_form_alter' in my module to add a new field to the login form , but now I want...

Asked on 10/26/2021

1 answer

Drush cr is responding with Bootstrap Failed

I have a Drupal 8.9 site I built on my development server. I've now copied it over to my production server (Ubuntu 16) and set up the database. I need...

Asked on 10/26/2021 by Chanel

0 answer

How can I attach an image from an existing image field to another multi-value image field?

I have the nodes that have the source image field field_old_image_field and the destination image field, field_new_image_field. field_old_image_fieldhas only one image. field_new_image_fieldcan have multiple images and probably does. I need...

Asked on 10/26/2021 by esod

1 answer

How do I create a table when a module is installed?

I want to add a custom table when a module I develop is installed. The code I am using doesn't seem to work, as the post table isn't created. What...

Asked on 10/26/2021 by David montera

1 answer

When passing a variable from a render array to JavaScript how do you reach that variable in your Javascript

I add a variable in the backend to a render array like so (removed superfluous code):$some_var = 'Hello World';return [ '#attached' => [ 'drupalSettings'...

Asked on 10/26/2021 by Sl4rtib4rtf4st

1 answer

Approaches for multi-field values

I am using the Drupal 8 REST API to post content to a custom content type. I have a use case in which I need to post multiple values to...

Asked on 10/26/2021 by Ian Stewart

0 answer

Views: List content NOT authored by the logged-in user

I want to list all the content that was NOT authored by the logged-in user in Drupal 9. Getting the list of content authored by the logged-in user is pretty...

Asked on 10/26/2021

1 answer

Pager not being rebuilt after $form_state->setRebuild() is called

I have a form that displays a TableSelect which is populated by a user-specific database query. This query can sometimes return over 1000 results so I'm paging the query and...

Asked on 10/26/2021 by Kenny83

0 answer

Where are Commerce 2 hooks (or Events) in Commerce 2

I am working on replacing our payment system from D7/DC1 to D8/DC2 and the original code makes use of hooks. I have replaced some of them with events but I...

Asked on 10/26/2021 by Wally Kolcz

1 answer

Show own content in Media Library

I am using Media Library from core, but users can choose media from any user. How can I show own content only? I have tried adding contextual filter in View,...

Asked on 10/26/2021 by RafaTicArte

0 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP