Latest Drupal related questions

Score: 0
liquidcms avatar
How to pass Paragraph ID from Layout Builder to Views?
us flag

This is a bit convoluted; so hopefully it makes sense:

I have a parent entity: Event. Event has a Paragraph field on it: Sessions (paragraph type: Session).

I use Layout Builder to format the Full Content view mode of the Event. In the layout I add a (paragraph) view which lists the Session paragraphs as Teasers (view mode of Session) with a contextual filter of Paragraph: Parent ID. This all works ...

Score: 0
OmarAc avatar
Webform update from 5.3.0 to 6.1.0 results in directory error
us flag

After I updated my webform module from 5.3.0 to 6.1.0 I received an error when submitting my form. Apparently it isn't able to copy the pdf file which I added to the form and so it is blocking the submit and giving me a white page.

Here's what I have in my recent log entry:

Drupal\Core\Entity\EntityStorageException:
The specified file 'private://webform/saisie_du_bilan/_sid_/projet-985.pdf' could not  ...
Score: 1
Marc Prince avatar
How do I turn off the calendar popup widget on the date field?
gh flag

noob here,

I have a form that requests a birthdate. I have set that field type to a date field.

When on a desktop, the user can either enter the date directly into the field--this is great--or use the calendar widget.

Here is my challenge:

When filling the form in by phone, the calendar widget pops up and forces the user to use the calendar to enter the birthdate, this is a pain as you cannot select a yea ...

Score: 0
How to get rendered node according to active theme?
jp flag

In a hook_entity_postsave() function in my custom D7 module, I'm doing the following when a node is saved:

$_ = node_view($entity, 'full');   
$html = drupal_render($_);         

But the renderd HTML seems to miss the active theme's templates. e.g. turning on theme debug, I get

 FILE NAME SUGGESTIONS:
   * paragraphs-items--field-sections--full.tpl.php
   * paragraphs-items--field-sections.tpl.p ...
Score: 0
OmarAc avatar
Webform 5.3 to 6.1.0 , Error : Call to undefined method Drupal\webform\Routing\WebformUncacheableResponse::addCacheableDependency()
us flag

I updated the webform module from 5.3.0 to the latest version (6.1.0) and then when I click submit on one of my forms, I receive this ERROR:

Error: Call to undefined method Drupal\webform\Routing\WebformUncacheableResponse::addCacheableDependency() in Drupal\webform\Controller\WebformEntityController->javascript () (/home/acelys/www/uno-test.agglonet.com/web/modules /contrib/webform/src/Controller ...

Score: 0
pglatz avatar
Configuration inspector is reporting errors erroneously
in flag

I have a Drupal 8.9.19 I'/m trying to migrate to Drupal 9. I just did a status report, and have some configuration errors I'm trying to fix first. For example, this is from a view:

display.page_2.display_options.fields.field_faq_category.settings.linked

This view has a page 1 and attachment 1, but no page 2. Why is this being reported, and what can I do about it? Will it screw up my migration if it is ...

Score: 0
kazah avatar
Similar content with contextual filter by url
in flag

There are two types of content (as an example):

  1. fruits
  2. vegetables

They share the same vocabulary and similar terms. Catalog structure:

-Fruits
--juices
---for children
---for men
---for women
-Vegetables
--juices
---for children
---for men
---for women

Url path for mango: /fruits/mango

I want to show similar vegetable juices for children in the fruit node, if the path matches the difference only wi ...

Score: 1
Chris avatar
Get raw node id value in views template without errors
be flag

I need to get the raw node id value in a views template, but the debug comments are interfering. Based on this issue I am using the following:

{{ row.columns.nid |render|striptags|trim }}

Which actually works, but I am also getting errors in the dblog relating the render method:

User error: "0" is an invalid render array key 
User error: "wrapper_element" is an invalid render array key
User error: ...
Score: 0
Elber CM avatar
Split taxonomy terms in two facet filters
it flag

English is not my first language, so please be patient.

I'd like to ask for assistance to split my taxonomy terms in two facet filters.

Context:

  • Drupal Core v9.2.6
  • Acquia Search v3.0.5
  • Acquia Connector v3.0.4
  • Search API v8.x-1.21
  • Search API Solr v4.2.1
  • Search API Pages v8.x-1.0-beta3
  • Search API Solr Admin v4.2.1
  • Facets v8.x-1.8

I have configured correctly the listed modules and set a functional Search  ...

Score: 0
Ludo Parazoom avatar
webforms Submission limit in event registration when it's possible to registrate more than 1 person by form
cn flag

I use "Webform Demo: Event Registration System", to manage event registration, and everything works perfectly if only one person can subscribe in a Form.

For example I want to stop the registration if they are more than 100 peoples, and when a person subscribe, he can come with his wife. So the limit I put in :

entity_limit_total: '[webform_submission:node:field_free_places]'

is wrong. How can I did it ...

Score: 2
Giuseppe avatar
How use subqueues of entityqueue module?
br flag

I'm on D9 and already using entityqueue module to let the content editors orders some views via "simple" queues

Now, I've been requested to make possible to order the nodes appearing on the terms' pages of a specific taxonomy.

Those pages - on /taxonomy/term/% url - are rendered trough the "standard" solution of a view of content with a contextual filter "Has taxonomy term ID".

I've successfully tried  ...

Score: 0
Joost avatar
Experiencing problems filtering view programmatically
jp flag

I'm using a views block in my website, the content of this view is filtered programmatically. I now get messages from users who see the wrong information. The filter is based on the currently logged in user. Since I need this information in the regular filter and not in the contextual filter I created a simple module to change the filter value.

My filter is like this:

(
Content type = contenttype_a
AN ...
Score: 0
user27604 avatar
Create a block with related content selected from "page" content type
us flag

I've two content-types:

'Page' and 'Bike'

From the page, I use a Entity reference field 'field_kies_je_leasefiets', where I link to several bikes.

I want to create a block, placed on the full node view of the 'page', to show a block with 'linked bikes on this page'.

I am struggeling to remember how I used to do this in the past. What 'CONTEXTUAL FILTERS' do I add? I tried 'NID', but that fails. Will someo ...

Score: 0
José Luis avatar
WYSIWYG images in AMP Module
in flag

I have a Drupal 7 website, the site has AMP module installed. When I insert a image in WYSIWYG editor the site is not converted to AMP mobile version (in image fields there is no problem).How can I fix this issue?

Score: -1
How to add CSS for a sub theme?
cn flag

I have a sub theme I created this way:

globalrs/globalrs.info.yml

name: globalrs
type: theme
core_version_requirement: ^8 || ^9
description: globalrs
base theme: tara
libraries:
  - globalrs/global-styling

globalrs/globalrs.libraries.yml

global-styling:
  css:
    component:
      css/style.css: {}

globalrs/style/style.css

* {
    background: red !important;
}

The sub theme was set to default but st ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.