


Pseudo field show/hide setting per node
I have created a pseudo field using hook_entity_extra_field_info() and displaying markup using hook_entity_view(). How can I create a checkbox setting in node create form so that I can show / hide this pseudo field per node? Sponsored by SupremePR Spotify Promotion... read more
Manage Display Field Label not changing: inline does not work
I have the same problem as question 212176 and discovered it has to do with CSS. I have 2 (local) sites both with module ds enabled. I configured in both a field where I want the label and the value in one line: inline With the classy-theme, this works fine. With the... read more
How to remove target id from selected term reference field
While selecting taxonomy from autocomplete term reference field, its target id also get displayed. How to remove target id from display? In picture displayed, I want only 23456789 not bracket part i.e. (19) from display. Sponsored by SupremePR Spotify Promotion... read more
Submit form and disable submission button
I want to disable the submit button after it is clicked to prevent multiple submissions. I have: $form[‘show’] = [ ‘#type’ => ‘submit’, ‘#value’ => $textforsubmitbutton, ‘#name’ =>... read more
How to change search placeholder?
So far I have tried this code in mytheme.theme: function mytheme_form_search_block_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) { $form[‘keys’][‘#attributes’][‘placeholder’] = t(‘Custom... read more

Create a simpletest test to add additional form elements using the "Add another item" button
I am trying to create a test case for my custom module using simpletest in Drupal7. I want to create a node. The problem is that the node edit form contains a number of fields which can have multiple values. Addition values are added by clicking on the “Add... read more
We're Striving to Make a Difference this Giving Tuesday
Each year, the Tuesday following Thanksgiving, also known as Giving Tuesday, provides the perfect opportunity to embrace the giving spirit of the season. This year, all of us at Pantheon are especially eager to participate. SoundCloud Repost Service SoundCloud... read more
DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1 no such table:
I’m getting a strange error with my Drupal site. The error is as follows: DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1 no such table: router: SELECT name, route, fit FROM {router} WHERE pattern_outline IN ( :patterns__0 ) AND... read more
How do I fill the authors name in a term reference field?
Content type stock contains the term reference field field_producer. What is the rule for Rules in order to fill this field with the node author name on creation? In detail The form looks like: — Content type Stock (stock) —- field Producer... read more
How do I convert special characters into html in twig
I have some list items in drupal 8 which created by item_list template.I am sending some <a> tagged data to the item_list template. My idea was to get the output as <a href=”/this-is-new.html”>This is new page</a>. But it returns the... read more
Views, group by first letter as rest export (Alphabet/Glossary listing?)
Is there a way to group results by the first letter of their title in a REST export per the screenshot? My first thought would be perhaps extending Serializer to process the results, at the expense of pagination. In my case, it is only about 100 records, and... read more
Talking Drupal: Talking Drupal #323 – Pantheon Autopilot
Welcome to Talking Drupal. Today we are talking about Pantheon Autopilot with Nathan Tyler. TalkingDrupal.com/323 Topics Nic – Firefly iii Kevin – Visiting Asheville Nathan – Working on 227 open source repos, soccer league John – Drupal... read more
Gábor Hojtsy: The big Symfony 4 to 6 jump plan in Drupal 10 and potential benefits down the line for future versions
As you may know, we are planning to release Drupal 10 in 2022 (as early as June), because Drupal 9’s Symfony 4 and CKEditor 4 are both end of life the year after, around the end of 2023. So we plan go give enough time for people to update to Drupal 10 before... read more
Specbee: Extending Drupal 9 CKEditor – 7 Brilliant Modules You Didn't Know Existed
Extending Drupal 9 CKEditor – 7 Brilliant Modules You Didn’t Know Existed Ravikant 30 Nov, 2021 A content editor is an extremely crucial part of a successful CMS. With a powerhouse of an editor like CKEditor as its default rich text editing tool, Drupal... read more
OpenSense Labs: Fully decoupled Drupal: Ultimate guide
Fully decoupled Drupal: Ultimate guide Maitreayee Bora Tue, 11/30/2021 – 17:11 Today organizations are seen focusing on creating very interactive and omnichannel user-experiences via their websites that consequently let them to depend on Drupal’s decoupled... read more
How to programmatically add a link to an image field in a view
I have a view with an image field and other fields, and I need to link the rendered image, not the content which is one of the configuration choice, but on another computed filtered view. I think that I should use my_theme_preprocess_views_view_field_myviewname to... read more
How to configure upload of webform document files to public folders?
When configuring the storage location of a webform document file,i am not proposed to changed it from private to public. That is problématic to expose that URI to a distant server. read more