Problem:
A customer of mine had two products on his website that where almost identical. He needed to combine the comments/reviews for both products on a separate page. So i created a new page called Reviews, containing the same comment field as the product page. But how to move comments from one node to another?
I could not find any information about how to achieve this through the Drupal 8 admin interface. So i found the best way was to make the change directly in the database.
Solution:
- Open phpMyAdmin
- In the comment_field_data table, look for the entity_id column. This column contains the node id of the node the comments are attached to. Change this number to the desired node id for each comment you want to move.
- Now go back to the new node and the comments should appear. If they don’t, try some of the following:
- Clear the cache
- Go to the edit screen of the node and save it (without editing anything)
- Write a test comment on the node.
- Make sure the comment field is not set to hidden in the field settings
Do you have any feedback or maybe even a better way to achieve this? Leave me a comment below:
Kontaktformular
(Ich melde mich innerhalb von 24 Stunden zurück)
Referenzen
Was meine Klienten über mich sagen
Barbara Brewster – barbarabrewster.com
Du bist ein wundervoller, prinzipientreuer Designer und Geschäftsmann. Danke für all Deine Hilfe an meiner Webseite mit Deinem technischen und kreativen Können und Deiner Fähigkeit Computerthemen in einfachen Worten zu erklären — und danke für Deine Geduld. Cheers and hugs.
Natasha Hund – lifespirals.com.au
Meine Webseite ist so leicht zu bedienen und Stefan hat meine Erwartungen an das Design verstanden und grandios umgesetzt. Es ist mir ein leichtes die von mir angebotenen Workshops und Angebote einzufügen oder zu bearbeiten. Danke.