I am trying to get the value of a field that is displayed in a panel page. I might be going about this all wrong, because I'm still getting used to Drupal 8. I want to display book information, including the ISBN value, which I use to make a link to Amazon.
I first tried a node template: node--book_page.html.twig and was able to do it by inserting the value of {{ content.field_isbn10.0 }}
into the URL I added to the twig. This worked great, but when I tried doing the same thing to the template that I set up to be used by the panel page, nothing happens.
I know I have the custom layout twig working as it should, but I'm guessing that there is more to requesting the value than {{ content.field_isbn10.0 }}
now that it's going through node_view in Panels.
I have tried adding it to the panel page as entity_field:node:field_isbn10 as well as field_block:node:book_page:field_isbn10. I just can't seem to get how to access the ISBN field value like I did in the node template.
{{ ?.?.?.field_isbn10.value }}
should work, if you add the three levels above the field not shown in the screenshot. – 4k4 Oct 22 '18 at 6:30{{ content._row.entity.field_isbn10.value }}
. That should print out the field value. – user72672 Oct 22 '18 at 8:05