This forum is for assistance with theme development.

Button and link color for Drupal 9 and Webform

Hello,

In Drupal 7, for the webforms (nodes) you could customize the links and buttons by modifying the colorpicker "Button and link color" (in node edit) for each webform.  I'm trying to find the same functionality for drupal 9. I don't know if it is implemented. It's still available for webform or nodes?

Thanks!

How to add a value to Node Body Field Tag, in D7?!

How to add a value to Node Body Field Tag, in D7?!

I need to add "data-content" tag to Node Body, but I can't find how.

I know there exist several modules that can add a Class, but this is not a class.

Also I can't find which Template file responds for this?! Or if there is only a single Field template, how to manage with this.

Twig Tweak 3 and drupal_field in node twig template

I have a Drupal 8 site with Twig Tweak 2 which I've upgraded to Drupal 9 with Twig Tweak 3. This has broken a custom node twig template.

With Twig Tweak 2, this worked:

{{ drupal_field('field_library_photo', 'node' }}

I gather from reading the documentation, this should work with Twig Tweak 3:

{{ drupal_field('field_library_photo', 'node', node.id) }}

But it doesn't. As a proof of concept, I hardcoded the node id of one of the library pages:

Template twig not displaying fields

Create a view that invokes a paragraph I built it as a block, create the view as the debugger suggested, but when trying to call the field I can't get it to look at all, try fields.myfield, content.myfield, fields.myfield .content, I would appreciate any help I've been stuck here for a long time, thanks

Only local images are allowed.

Double Search Form

Hi,

I've placed the default search form in Navigation it is working correctly but when I search for content or a keyboard.

The result page or search result page has 2 search boxes appearing which is overlapping why is the duplicate search form coming on that result page, I want to configure the search form and hide the box in the search result page but I don't know which node or page I need to enter in "Hide for the listed pages".

Some help needed with "Trying to access array offset on value of type null.."

Hi all,

I've been using drupal since drupal 6 and running a custom subtheme based on Bootstrap barrio.  When i started working on the drupal 8 version of my site, i found out i could not access the row output like i could in drupal 7. After some research i found out the following code snippet. That  still works great, but it spams my database log full with the following error:

Pages

Subscribe with RSS Subscribe to RSS - Theme development