Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
there is a problem getting the value "Book root from current node" for the content:nid especially in "add forms"(via entity reference or so). If the view is called within an "edit form" or on any content node (book chapter) everything works fine.
Comments
Comment #1
Zippy CreditAttribution: Zippy commentedHi,
here is a qucik and dirty workaround.
The following code can be used inside the contextual filter. Select content:nid and for this value select "provide default value" -> choose "PHP Code". Insert the following code: