I Just wanna change the content of my block when the page refreshes(Just like the concept in advertisement block changes on page refresh).I'm doing a drupal7 site.That block is a dynamic one (views:block) it has four fields of three text and one image field. The block's content belongs to a content type "X".On the page refresh the block should show one of content of content type "X". I want to change the content of the block whenever the page refresh takes place. Could you please give me the guidance for the script?

有帮助吗?

解决方案

Again I don't thank you need a script for this. I guess we can do this by setting the "Items per page" in view to 1 and and in sort criteria select "Global: Random". This should randomize the display of content in the block on every page refresh.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top