Hi all,
I would like to use the blog functionality to create an events (upcoming events) feed and individual post pages.
So I would like to display future events and hide past events (opposite of the typical blog posting).
I haven’t found any documentation around this and was wondering if anyone has any ideas here instead of using HubDB which I don’t think will be a good solution for the client to maintain.
In my opinion HubDB is absolutely the cleanest way to execute this.
But, I suppose you could create a blog template that has a custom field in it for date. Then in a module do something like
{% set current_date = unixtimestamp( local_dt ) %}
{% for content in contents %}
{% if [BLOG_CUSTOM_DATE_FIELD] >= current_date %}
[BLOG CARD]
{% endif %}
{% endfor %}
Barry Grennan
Freelance HubSpot CMS Developer
Website | Contact