开发者

toggle between views in drupal

I am using views to show some nodes data. currently I am showing 4 nodes at 开发者_如何学JAVAone time in a view... but customer need a toggle to view 1 node or 4 nodes... I need it Ajax based.

Any idea how to implement it or any direction??

Thanks.


You could create two views, one with 1 node and one with 4 nodes, then use the Quick Tabs module to toggle between the two views using Ajax.

You could also accomplish it with a single view with two different displays, then use the Views Display Tabs module to do the Ajax toggling.


Why don't you add an exposed filter to the view and allow the customer to change the amount? I'm sure if you set the view to use ajax the filter would be ajax based.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜