1

I am using views to show some nodes data. currently I am showing 4 nodes at one 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.

2 Answers 2

1

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.

3
  • Thanks for the reply Matt. I am also using Quick Tabs module for showing different views but i need the toggle inside a tab :) Jan 20, 2011 at 7:00
  • I guess I don't understand what you need then. What mechanism do you want to use to trigger the toggling then? A form? A link?
    – Matt V.
    Jan 21, 2011 at 1:08
  • Matt, I am able to set up the required thing... thanks a lot for your cooperation. only one thing is left. I've used Views Display Tabs, you mentioned, and now i need to put the tabs below the views contents(Bottom left corner). I am sure it is possible. Can I get any Idea? Jan 21, 2011 at 5:44
0

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.

2
  • Hi Jamie, thanks for your post. Actually I am new to Drupal. May I know more about exposed filter? is this the filter used in views originally or something else like module? Jan 21, 2011 at 5:49
  • It's a part of views. On the bottom right when you edit the view, there is a box called filters. You can add a filter and when you are adding it, there is a button that says "expose". This enables users to be able to use a form called an "exposed filter". Edit: On looking into this, it seems impossible to do. Leave this with me and I'll find another way. I may have to write a module for this. Jan 21, 2011 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.