I'm creating popular content blocks for my multi-user blog website using views. By cloning the default "popular" view and making some edits, I'm able to display both the "Popular content" block and the the "Today's popular content" block for the site's blog content.
I'm wondering how I can combine the content of the "Popular content" block and the content of the "Today's popular content" block into one block, which will be similar in presentation to the "Popular content" block provided by the Drupal Statistics module.
Many thanks in advance.
Comments
Comment #1
merlinofchaos commentedYou could probably use an attachment display for one and of the two queries and attach it to the block display.
Comment #2
hazart commentedThanks a lot, merlinofchaos. I actually used the following PHP code as the Header of the "Popular (block)" display:
where 'popular_global-block_1' refers to the "Today (block)" display.
It worked flawlessly. Thanks again for all your work on this amazing module!
Comment #4
michaelcrm commentedto merlinofchaos:
Your suggestion is very helpful! Thank you.