Drupal is up and running but how do I ...?

Establish a dynamic dropdown selection list with multi-level linkage

I am creating a form. It contains 5 dropdown selection lists. When they are selected one by one, they can work normally. But in some cases. Need to skip the middle 1 or 2 sub forms. How can I achieve this goal? This is my code, it helps explain my problem. Thank you for all your tips.

<?php

/**
* Build a 5-level linked query form from the database,
*/

namespace Drupal\xxjnav\Form;

Remove Forum subscriptions from new account signup

I have installed the Forum on my Drupal site, and now the signup page has a place to sign up for Forum subscriptions and Forum topic subscriptions.  I do not want this on the new signup page, but cannot find a place to remove it.

JSONAPI and display_name - what is it?

Hi All, when I show users using the JSONAPI module there is a field under attributes called display_name. What is that field? It seems to hold user names. I don't see that field using drush command ./vendor/bin/drush fbi user or ./vendor/bin/drush fi user user Furthermore, I have removed access for "Anonymous user" to "View user information" under /admin/people/permissions and still this information about display_name is shown in the JSONAPI output.

Drupal 10 - URL placeholders for passing arguments

In Drupal 7 I used panels and page manager to create a URL and pass arguments to custom pages. A route might look something like /custom_section/!1/!2.

I need to do something similar in Drupal 10. I have been creating pages by adding basic pages and using layout builder to add blocks. I can add contextual filters to views blocks and get them to work in the views preview. I just can't figure out how to pass the arguments to the views blocks in the page.

[SOLVED] Newbie: The website encountered an unexpected error. Try again later.

Hi Drupal Community

HELP!

After our website developer went AWOL, I have been trying to look after our Drupal site by myself but am completely new! I have tried not to make any major changes to the site but today, I tried to log in using the domain name/user/login pathway I always do and I got the above message. Every page of the website comes up with the same message.

Multiple nodes edit forms on same controller page D10

Hi all,

In my custom module controller page I output a series of different nodes edit forms with this code:
 

$nodes = \Drupal\node\Entity\Node::loadMultiple($query);
foreach ($nodes as $node){
$form_n=\Drupal::service('entity.form_builder')->getForm($node);
$output.= \Drupal::service('renderer')->render($form_n);
}

They rendered correctly but I cannot save them because I think they have the same form_id, so it will let me save only the first one.

Pages

Subscribe with RSS Subscribe to RSS - Post installation