Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal, Views: using AJAX to load the complete node?

I've a View page with all the content of my website (the node headers). When I click on one of these header I would like to load the complete node without refreshing the page and display it on the left.

Can I do this with Views (I mean.. does it have a functionality to load a complete node and add it to the current page ?

thanks

like image 687
aneuryzm Avatar asked Feb 19 '26 15:02

aneuryzm


2 Answers

I think it is possible using Views. Views is much more than just SQL generator.
Views can work with Fields, or with full node. Set it to full node.
Views can work with Ajax - set it to "yes" (I think it is Yes by default).

It is hard from your description to understand the whole picture, so I can't lead you any further. All I can say is that I use Exposed Filter with Ajax and load full node properly, chaning the content of the page.

Hope I helped,
You are welcome to ask me directly for further support.

Regards,
Shushu

like image 185
Shushu Avatar answered Feb 21 '26 13:02

Shushu


No. Views is basically an SQL query generator. You can do what you describe with javascript, but I don't know what modules might be helpful.

like image 41
mingos Avatar answered Feb 21 '26 13:02

mingos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!