Blog, Website & Page Publishing

Roger
Contributor

How can I exclude an article manually from weekly notification mail?

SOLVE

Is there a possibility to exclude an article, which was published since the last weekly notification mail, from the notification mail this week? If there is no official feature, does anybody know a workaround?

1 Accepted solution
DaniellePeters
Solution
Top Contributor

How can I exclude an article manually from weekly notification mail?

SOLVE

There's no way to do that with the default weekly email because it pulls from the RSS feed. However, you could build a custom email that uses the HubL function blog_recent_posts to print the articles. You could then place a hidden boolean module in your blog posts and use that value for the if statement logic.

 

http://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-recent-posts

http://designers.hubspot.com/docs/hubl/hubl-supported-modules#boolean

View solution in original post

0 Upvotes
3 Replies 3
DaniellePeters
Top Contributor

How can I exclude an article manually from weekly notification mail?

SOLVE

There's no out of the box way to do that. However, you could try wrapping the Main Email Body of the email in an "if" statement like this:

{% if post.title != [TITLE OF POST YOU WANT TO EXCLUDE] %}
{{post.title}}
{{post.author_line}}{{post.publish_date}}
{{post.featured_image}} {{post.summary}} Read more » {% endif %} 

 

0 Upvotes
Roger
Contributor

How can I exclude an article manually from weekly notification mail?

SOLVE

Hi Danielle

Thank's for your reply. I was more thinking of something like a "flag" to the post, which indicates not to be added to the rss feed. 

0 Upvotes
DaniellePeters
Solution
Top Contributor

How can I exclude an article manually from weekly notification mail?

SOLVE

There's no way to do that with the default weekly email because it pulls from the RSS feed. However, you could build a custom email that uses the HubL function blog_recent_posts to print the articles. You could then place a hidden boolean module in your blog posts and use that value for the if statement logic.

 

http://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-recent-posts

http://designers.hubspot.com/docs/hubl/hubl-supported-modules#boolean

0 Upvotes