Drupal Answers Community Digest

Top new questions this week:

How to prepopulate the body field with the body of another node

I have a number of nodes that I use as templates, I clone them to create nodes with the same body text. However, I want to make this process simpler by prepopulating the body field using a token that ...

9 tokens  
user avatar asked by Yuri Score of 1
user avatar answered by 4uk4 Score of 3

"migrate:status" freezes on "Try to validate bootstrap phase 0"

Drupal community! I am working on migrating from D7 to D9. Both are located on separate servers. I configured D7 database as db to migrate in my D9 settings.php, like this: $databases['migrate']['...

drush 9 migrations  
user avatar asked by Mykyta Miakushka Score of 1

Greatest hits from previous weeks:

How do I get the raw field value in a twig template?

myfield is a plain text field. {{ content.field_myfield }} renders the field with HTML markup and the field label. How do I render the raw value of the field? {{ content.field_myfield.value }} doesn'...

8 theming  
user avatar asked by Pim Score of 42
user avatar answered by No Sssweat Score of 76

What does "The provided host name is not valid for this server" mean?

I am running a Drupal 8 website, and when I browse to any page, I get a plain white page with just the following error message on it. The provided host name is not valid for this server. What does ...

8 configuration  
user avatar asked by mpdonadio Score of 79
user avatar answered by mpdonadio Score of 109

What is the basic concept behind hooks?

I am intermediate in PHP. To polish my skills I start learning Drupal 7. While learning Drupal architecture concepts, the terms hooks and bootstrapping puzzled me a lot. I read the "Pro Drupal ...

hooks bootstrapping  
user avatar asked by GiLL Score of 124
user avatar answered by user56reinstatemonica8 Score of 112

Print the query which is built using db_select()

I want to print the query which is built using db_select() in a programmatical way. Is there any API function provided by Drupal Abstraction Layer? It is similar to query output in Views, but I want ...

7 database  
user avatar asked by Sithu Score of 64
user avatar answered by apaderno Score of 69

Contextual filters taxonomy name

I'm adding a contextual filter to a view for a custom content type that has a taxonomy field. The contextual filter allows me to filter by the taxonomy tag id but not by the taxonomy tag name. Meaning ...

7 taxonomy-terms views  
user avatar asked by powers1 Score of 110
user avatar answered by rocketeerbkw Score of 160

Strict warning: Only variables should be passed by reference

I get the following error: Strict warning: Only variables should be passed by reference in include() (line 18 of /home/sites/dev/theparce/sites/all/themes/parce/block--block--3.tpl.php). This is ...

user avatar asked by silkAdmin Score of 22
user avatar answered by apaderno Score of 52

Get taxonomy terms

I wanted to retrieve taxonomy terms from a certain vocabulary in Drupal 8. Apparently I can still do it using taxonomy_get_tree but it's deprecated. I now have to use TermStorageInterface::loadTree ...

taxonomy-terms 8  
user avatar asked by Romain Braun Score of 28
user avatar answered by Berdir Score of 56
You're receiving this message because you subscribed to the Drupal Answers community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 110 William Street, 28th floor, New York, NY 10038