- Issue created by @erwangel
Using better_social_sharing_buttons as a field it displays in the right place (assigned by the layout_builder) only in the site's default language. On the other languages it displays at the bottom of the node display (after the layout_builder's rendering)
- Display the node you created before in the site's default language => Everything should look okay and sharing_buttons are displayed at the right place.
- Verify with a hook_node_view() where you print dpm($build['_layout_builder']). Indeed sharing_buttons are present in something like
"60ec691a-f458-4d4c-9cf8-c3480e7a5140" => array:9 [
"#theme" => "block"
"#configuration" => array:6 [
"id" => "extra_field_block:node:your_content_type:sharing_buttons"
"label" => ""
"label_display" => "0"
"provider" => "layout_builder"
etc.
- Now display the node in the other language => sharing_buttons are still present at the bottom of the display and out of the _layout_builder context.
You can verify this with your browser's inspector. Also, the dpm($build['_layout_builder']) hook_node_view() doesn't have any "sharing_buttons" string although $build['sharing_buttons'] is present.
Active
4.1
Code