开发者

Views page and AJAX

开发者 https://www.devze.com 2023-01-10 06:32 出处:网络
I created a page view where it lists all nodes grouped by content types. My problem is how to create a page which will only output the view, I mean without the headers, sidebars etc.. just the view co

I created a page view where it lists all nodes grouped by content types. My problem is how to create a page which will only output the view, I mean without the headers, sidebars etc.. just the view content? My reason for doing this is I would la开发者_如何转开发ter call the view / view page in an AJAX request and display to the user.

My view name is 'node_list', and I used the files views-view-list--node-list.tpl.php and views-view-fields--node-list--page.tpl.php to theme the output. But I have no idea how to create a page with only the view visible..

I hope you can help me. Thanks!


The easiest thing, is to create the call back for the ajax function and just return the view you want to insert using views_embed_view

0

精彩评论

暂无评论...
验证码 换一张
取 消