APIs & Integrations

newrt
Member

If blog has tag

Hi All,

I'm trying to do something along the lines of:

if blog.tags contains 'example-tag' {
print 'test'
}

in hubl but I can't seem to spot the relevant variables in:

Would it be in one of the variable arrays? That's the only thing I can think of.

Thanks

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

If blog has tag

Hi @rst88,

it sounds like you want to use {{ content.topic_list }}:

The list of topic objects associated with the blog post. The following properties can be accessed from each topic object: name and slug.

0 Upvotes