CMS Development

Vusi
Member | Elite Partner
Member | Elite Partner

Using Custom Module for my HubDB

I've created a hubdb and custom module to display my hubdb. I used orderBy=random() which works fine on some pages but not all pages. I would like to know how is it possible for example works fine on home page but not on About page.

0 Upvotes
1 Reply 1
GregSamsa
Contributor

Using Custom Module for my HubDB

In what way is it not working? Could it be a caching problem? Have you tried loading the page in incognito mode?

 

This is what the HubSpot developer docs say about the random filter:

 

"Please note: when using this filter, the page will be prerendered periodically rather than every time the page content is updated. This means that the filtered content will not be updated on every page reload.

This may not be an issue for certain types of content, such as displaying a random list of blog posts. However, if you need content to change randomly on every page load, you should instead use JavaScript to randomize the content client-side.

"

0 Upvotes