I am working with books in drupal 8. I want to display a specific page("table of contenets") on the sidebar whenever any page of that book is accessed. "table of contents" is a book page. every page of book has two id's.
Page_id is unique for every page but book id is same for all pages. I believe contextual filter based on book_id might solve my issue. but I don't know how to add contextual filter based on book id.
here are the results of
SELECT * FROM book
I can see this "Top level book from current node" . I think this is helpful to do my task. can anybody explain me how can use that option.
Need tons of help.
/admin/structure/block. If you still need help, please edit your question to be more specific. For example, how many books is "some books"? If you only need this for a few books, and you won't be adding more, it will be faster to make some custom blocks. Also, you said two links on each page, one of which is table of contents. What is the other link?