How to display a block view on demand triggered by clicking content of another view?


A link just takes you to a different page. Since blocks are associated to pages, you just need to link to a page to which the block is associated.

Linking to the same page that should then show the block is not possible, since blocks appear right when the page is shown. There isn't a way to delay the block appearing on pages.

Tags: Views / Drupal 8 / Blocks

Similar questions

How to change "Image style" of an Image field in a given view mode programmatically (as on "Manage display" tab after clicking the gear)?
I would like to change the "Image style" of some Image fields in some given view modes, which are attached to particular content types; I would like to do this programmatically. This is what I would like to change: How should I do this?
Drupal: Access denied triggered, but I get content anyway
I'm building a site that gives each user a private home page with content they can see but others cannot. The callback in a _menu handler allows access if the user is the owner of the page and denies it otherwise; all is well there. I've just revised that page so that its content is made up of a set of boxes instead of a big bag of code. The conten...
Can't edit Main menu block in sidebar by clicking on "gear"
Today on one of my websites I encountered something strange. I have my "Main menu" block in my left sidebar, and when I hover over that block, the "gear" to edit it shows up, but clicking on it does nothing. Also, on pages that the block wouldn't show up on, it does (rather, the blank space does) with nothing in it, and the gear still shows up and ...
Load more content with ajax when clicking more link in a view
I have a custom block view. I display the last 5 node titles. If someone clicks the more link I want to load the next 5 titles underneath the current 5 node titles. No page refresh and not pager. Is this possible? How would I go about doing this?
How to load all remaining content of a view after clicking a "load more" link?
I have a view block that list contents. What I want to do is to show only 5 items in this view and a load more link at the bottom of the view and if this link clicked, then show all remaining content of the view. I tried the Views Load More module and the Views Infinite Scroll module. The Views Load More module didn't work, the Views Infinite Scrol...
How to display flags to anonymous users and redirect to login after clicking a flag?
I want to display flag to anonymous user and upon clicking the user should be redirected to register/login page. I found one answer to this problem in the question about "How to display a flag to anonymous users?". I tried this solution but did not work, may be I did not put the code in correct place? I am using Bartik as my template and I put the ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.