Top new questions this week:
|
I would like to exclude all body fields from the search index for a specific content type. Reason: We have an Author content type with a bio in the Body field. However, for searches, we only want the …
|
I’m trying to override an email template of the webform module. The project is headless so we don’t have a custom theme, and we’d like to stick with the Adminimal contrib theme. However, we do have a …
|
I have multiple uses for this functionality now but mainly for a private message system. What I want to do: Configure a content type with an entity reference to users Create nodes of that type and …
|
I’ve read the documentation of upgrading (migrating) from D7 to D9, but didn’t see anything about how to handle changing MySQL versions in the process. My D7 instance is on MySQL 5.6, which is …
|
I have added a slogan in Olivero but it doesn’t appear. Only the (textual) web site name appears. I went to edit the Site Branding block and under “Toggle branding elements” I have all three …
|
I need to set a checkbox which has an unknown field (machine) name in the user account. the checkboxes are in the user account /user/?/edit but they doesn’t appear as fields in people/accounts/fields …
|
I want to list all the users and groups they are member of in one table, one row per user. I have a simple view that lists all users in the system. I added relation to group content membership and a &…
|
Greatest hits from previous weeks:
|
I want to add an image to a block located in the First Sidebar in Drupal 7. Does anyone know how to do this? Thank you.
|
I am trying to get the node URL in a Twig template. {{ content.node_link }} returns the full link, but I only need the URL. How do I retrieve the node URL?
|
What is the best method to check if a field is empty in a node template. In node–example.html.twig we can use “content” variable. I can’t use check like checking a block {% if content….
|
I thought this was an easy task, yet there does not seem to be a Drupal-method for this. I came as far as knowing I have to use EntityFieldQuery for this – because the API said conditions for …
|
I’m using paragraphs in my content type. I’ve created a paragraph type and added content. Now I want to load the paragraphs in a foreach. But nothing’s showing up. $paras is empty: $node = \Drupal\…
|
I’ve pored over this old thread on drupal.org and it just kind of makes my head spin around. Pulling down the path and trying to parse out the NID from within it? There has to be a better way. And …
|
I ajaxly call a route and pass data to it, In my controller, I want to get $_POST[‘var’] , $_POST[‘var2’], it seems because of using HttpFoundation in drupal 8, $_POST and $_GET are not exists in old …
8 |
|
|
answered by Clive Score of 93 |
|
|
|