Can't Preview Listing View for Blog Template

SOLVE
Highlighted
Occasional Contributor

Hello, I'm trying to code a new HubSpot blog template for our agency website via the Design Manager.

 

We already have a live HubSpot blog that I also coded the template for, so I am trying to preview the new template first before publishing it. I want the new template to only go live once we launch our new website.

 

When I click "Preview options", then "Listing view" to preview the listing view of my new blog template, I am only able to see the single post view.

 

The Design Manager preview also does not work for my currently live blog template, so I don't believe the issue is with my code, but rather with the preview functionality.

 

The following test code always returns "post view":

 

{% if is_listing_view %}
    listing view
{% else %}
    post view
{% endif %}

 

Can someone help me with this?

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Occasional Contributor

Hi @stefen, I received a response to a support ticket I submitted on this issue:

 

I have tested in several other portals and it seems that if a blog is using a coded template then we can only ever preview the post template. If the blog template is using the drag and drop functionality then we can view both versions. I have reached out to our backend team and opened an internal ticket to see if we can create the same functionality for coded templates.

It seems this problem is not isolated to my code or to my portal, but at least it sounds like someone is looking into it.

5 Replies 5
Advisor

@dharrison are you using the template builder or a coded template?

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen
Reply
0 Upvotes
Occasional Contributor

@stefen It's a coded template, but I'm trying to preview it in the Design Manager.

 

The code I'm using is based on this article: http://designers.hubspot.com/docs/hubl/blog-content-markup

Reply
0 Upvotes
Occasional Contributor

Hi @stefen, I received a response to a support ticket I submitted on this issue:

 

I have tested in several other portals and it seems that if a blog is using a coded template then we can only ever preview the post template. If the blog template is using the drag and drop functionality then we can view both versions. I have reached out to our backend team and opened an internal ticket to see if we can create the same functionality for coded templates.

It seems this problem is not isolated to my code or to my portal, but at least it sounds like someone is looking into it.

Regular Contributor

I'm having this same issue, seems no one ever fixed it as this was posted almost a year ago...  :'(

Reply
0 Upvotes
Occasional Contributor

@lcrumling You may want to put a support ticket in at your portal, as that was how I was able to get the issue resolved on my end. I just double checked and the post/listing view previews are still both working for me.