Hi,
We have a listing page built on HubSpot where all demo videos are listed. However, we’d like to hide one demo video from the listing page while leaving it to remain active and accessible. How can we do this?
Hi,
We have a listing page built on HubSpot where all demo videos are listed. However, we’d like to hide one demo video from the listing page while leaving it to remain active and accessible. How can we do this?
Hi @trishnguyent ,
You can add an if statement to your blog listing based on the topics, so if you give that post a topic called ‘hidden’, you can do something like this:
{% for content in contents %}
{% if 'hidden' in content.topic_list|map('name') %}
// Render something of a placeholder here, like a CTA
{% else %}
// Add your regular post html here
{% endif %}
{% endfor %}
Hi @trishnguyent ,
Do you use the default blog content module in your blog listing template? Or is it a custom module?
It is custom ![]()
In that module, you should have a loop where you go through all ‘contents’ to display the posts in your listing. Add the HubL with the if statement there.
You can select a topic for each blog posts in the ‘settings’ when editing the post. Add a new topic/tag called hidden for the post you want to hide.