Score:0

How to display random banners if the number I need exceeds the amount of vocabulary terms?

im flag

I made a classified ads site in Drupal 6, now I am updating it to Drupal 9. I already have the "ads" part working, defining categories with a taxonomy vocabulary but displaying the ads with a Views page (custom URL).

I have an issue with banners. I succeeded in displaying a block with banners tagged with the same term.

BUT in my old site, using a module called "Advertisement", if I want to display 5 banners but have only three for the term, the module displayed two more, randomnly chosen. Is there a way to achieve this with Views?

Thanks. Please forgive my bad English.

id flag
The Advertisement module exists for Drupal 9.
Claudia Burman avatar
im flag
Thanks, I was wondering if there was a way to do it with Views only
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.