Posted by swatee_karpe on May 8, 2012 at 9:31am
Hi all,
I am using Drupal 7 with Views + views field view module.
I have created 6 different views block like testimonial,our client, our awards...... which is blocks.
Goal: my goal is to create one block in view with all above views as a fields and display 3 of them randomly.
I am little bit confused. Can anyone of you help me out?
Thanks in advance.
Comments
maybe this can help
http://drupal.org/project/cck_blocks i have find this where you can use blocks as cck fields and than you can use this content type in views to create your block
Regards
Tajinder Singh Minhas
Panel is best Solution for D7
Panel will be the best solution in this case. You will have to write few lines of custom PHP for rendom block visibility settings.
No panels, use inbuild view sort random
Panels will be confusing. In your case, your approach is right. create 6 views and then make another view and in display type block, add those 6 views as fields. Then you set the limit of number of items to show as 3. Lastly just choose "Random" in sort criteria of this view. Views actually handles it and makes sure you always show random and not show two same items at once.
I am sure i have done exactly this before.
@swatee_karpe Follow the
@swatee_karpe Follow the instructions given by vidhatanand i had did same things with same way.
I used inbuild view sort random
thanks all,
but in my case I used inbuild views sort random but while rendering block it shows 3 times all the blocks.
ex: i have 6 views 1,2,3,4,5,6 and I added all 6 as in fields and I given limit as 3
so while rendering it shows like 6x3=18 times views.
need some more help.