Blog, Website & Page Publishing

SWeller
Participant

Internal private blog - what's the best way?

SOLVE

I'm looking to create a Hubspot blog for internal use only, to share company news on a weekly basis.

 

I know I can hide the blog from the SERPs, however, is there a way to add password protection to it?

 

I believe you can do this on landing pages but I've read about not being able to do it on a blog, and it seems that other links (if doing it on a landing page) would still be accessible without password protection. I don't want external parties to access this information and so the ideal scenario would be a login...


Any solutions/alternative ideas that could work for this are much appreciated!

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Internal private blog - what's the best way?

SOLVE

Hey @SWeller 

 

If you have CMS Hub Enterprise you can control audience access for blogs from Settings > Website > Blog using Memberships. If you do not have Enterprise you could do something like :

 

1. Create a List for the people you want to have access to the blog

2. Create a Login page using a plain ol Hubspot form that redirects to the blog

3. On the blog template add an if statement to only show the content if the current user is in that particular list.

 

<!-- replace XXXX with the ID number of your list which can be found in the URL of the list -->
{% if XXXX in request_contact.list_memberships %}
   Your Blog Content
{% else %}
   You do not have access to this content.
{% endif %}

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

2 Replies 2
JessAtCNC
Participant

Internal private blog - what's the best way?

SOLVE

@alyssamwilie 

We do not have CMS Hub Enterprise, so I am attempting to restrict access to a blog per your recommendation.

I have created a list for the people who should have access

I have created a page with a Hubspot that redirects to my blog when a use clicks the submit button

I have also added the IF statement to my blog template as the first lines of code, before {% set template_css

Blog Template IF.png

Unfortunately, this is not restricting access to the blog.  Have I added the IF statement in the wrong spot?

0 Upvotes
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Internal private blog - what's the best way?

SOLVE

Hey @SWeller 

 

If you have CMS Hub Enterprise you can control audience access for blogs from Settings > Website > Blog using Memberships. If you do not have Enterprise you could do something like :

 

1. Create a List for the people you want to have access to the blog

2. Create a Login page using a plain ol Hubspot form that redirects to the blog

3. On the blog template add an if statement to only show the content if the current user is in that particular list.

 

<!-- replace XXXX with the ID number of your list which can be found in the URL of the list -->
{% if XXXX in request_contact.list_memberships %}
   Your Blog Content
{% else %}
   You do not have access to this content.
{% endif %}

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.