SOLVED: Custom post not rendered in template in the builder

Bricks Version: 1.5.1 RC
Browser: Chrome 90
OS: macOS
Running Local

I have a custom post type and a template targeting that custom post type. This is also the only ‘single’ type template.
The template renders fine on the front end for the custom post type, but not in the builder. In the video below the blue pattern background on the section is added via the template and you see it is not available in the builder for the custom post.

Video of issue : Berrycast - Free Screen Recorder & Sharing Tool

I tried this on both 1.5.1RC and 1.5 and can repro in both versions.

Cheers,
Karthik

Hi karthik,
Thanks so much for your report!

Within your template, you use the Post Content Element to output the content of your post (data source Bricks). This means that you only design the content of your post - just like in Gutenberg, where you don’t see anything of the template around it as well.

However, within the template, you can preview an actual post with “populate content”.
Within the post, there is no such possibility.

Best regards,
timmse

I see. Is there a way this could be resolve so the bricks builder is more wysiwyg?

Well, Bricks is a visual page builder, so it’s already pretty much wysiwyg :smiley:
And as I said, if you design the “inside” and the “outside” of your post independently (which is the correct way), you still can see in the frontend (or template) how it comes together.

Best regards,
timmse

It would be great to see the post as we edit it too use the template. Much like in oxygen.

1 Like

+1 to be able to preview a custom post inside the template builder.

In my set up (Bricks 1.6), in the Populate Content settings, I can choose Single post/page Content Type, but the list only shows pages and none of my custom posts.

Thanks

So should I be able to see a list of custom post type posts in the populate content section? I don’t currently

Same here. Bricks doesn’t seem able to list the Custom Post types in its drop downs.
Whilst I concede that it is not disastrous to not be able to see the CPT content within the Template it would save some time if we could, and make designing the Template a little easier.

The CPT’s do show up in the Conditions dropdowns, so just an oversight I hope.

Hey Macky!
Assuming, we’d query every post, page, image, cpt, … simultaneously, can you imagine how resource-heavy this operation would be and how long it’d take each time? There is a (subtle) search field, that allows you to search for your custom post or whatever you’d like to preview.

In my screenshot, “King Richard” is a post from the custom post type “movies”.

1 Like

Ha no of course I dont need every page on the site!!! Just one of the posts relating to the custom post type that the template is styling. So when I set the conditions for the template to be post type>my CTP the list then populates with posts of that type?

When I go to populate content>Single post/page and then view the drop down list the custom posts aren’t listed, only pages. When I type something in to the search box, then the list includes the custom posts as well as pages. This is why I couldn’t see the custom posts before.

This may be as you’ve intended, but is confusing for the user - why would I search a list of posts when I can already see the whole list and what I’m looking for is not on the list? I’m sure you know what I mean, but here’s a lil video of it in action.

Thanks!

1 Like