When I make a template for post content I would like the possibility two make two templates based on the renderring on the post content:
example: a blog post is rendered with bricks -
example: a blog post is rendered with wordpress/gutenberg
Is that possible ?
Use-cases:
Someone comes to me with blog posts she made in gutenberg for example, or with a preference for gutenberg - then I make one for that - and then I just stay in the background and design the rest of the site in Bricks. And I still have a possibility to convince her along the way and everything looks the same. I just mimic her previous theme.
Hi @Nora - thank you very much. It does not seem to be the soluton for me though. I just need my clients to have the possibility to go on using Gutenberg or Classic editor. They should not have to choose templates or anything. I can wait. Bricks is in the making and looking awesome. This however seems to be to demanding for the client and me. I want automation, one-time setup, that does not require custom code. A template condition would be logical.
The short version is that I am confused about Bricks being a theme and not a plugin and what to do with clients that already have an installation.
Bricks offers some tools for formatting and a different interface to format posts and pages that Gutenberg or the classic editor does not. I do not want to force users into using Bricks or depend on some conversion tool if the client has been … creative …
Bricks builder is not just a template to wrap around. According to Thomas - the recommended route is to - as you do - use gutenberg. I am here referring to the guide on the trial version in the dashboard.
However - The bricks builder also allows me to access pages and posts and edit them in Bricks builder.
This gives me some confusion as to the recommended route. If I could, it would be more consistent to stay in one interface - Bricks builder - where they can also just create pages and posts and so on - in the same interface and forget about Gutenberg, but still allow for compatibility, past and future.
“render a blog post” - refers to the option in the admin bar - Render with Bricks or render with Gutenberg/Wordpress.
The template condition allows me to work in tandem - so the client does not need to think about Bricks. And just continue using the clients gutenberg stuff, with a template that takes the special formatting they have had into consideration. The client comes from another installation with a different theme - and then it has to be transferred to Bricks. this gives some problems because Bricks is a theme - and not a builder. I have not gotten my head around it yet.
As it is now it is not clear to me which way this is heading regarding how the client optimally should edit.
In another post I have asked about how the client should edit content.
Also, if the client is using blocks in the gutenberg editor - how will that integrate into Bricks builder ? Say, the client writes a post and adds some block she wants to use - I can get troubled by that perspective and want to separate those two approaches so I do not not lock-in the client who wants access to the blocks in gutenberg. Say she has been used to use spectra or hear of a nice block she wants to use …
Why not use the post content element in bricks single post layout? Design the single page/post layout, put the post content element and whatever client use in gutenberg will show there.
The post content element requires me to specify whether data source is wordpress or bricks. That is what I think a template condition would be nice for. There are going to be styling issues depending on the editor I fear. On the trial I tried putting in a default video from youtube - and that did not render well when I used it in Bricks to edit it. It just showed the url… Just as an example. It was the deafult youtube block in gutenbnerg.
Can’t say if this is right or wrong, but this is is how I work.
I let users create their posts using gutenturd, just like a normal WP user.
I do the design work in Bricks.
I have a page that uses the Posts element to display cards showing the posts or use query loop, whatever you please.
I create a template to show the individual post ( A single post template ). On here I just use the Post Content element and yes I choose the data source as Wordpress ( I’m sure there is a reason to allow Bricks as the data source but I don’t see it or need it ).
That’s basically it. It display the post with whatever content the user put in their post. Just tested and yes that includes a Vimeo video ( I don’t use youtube ). It all just works.
I can limit the users access to bricks, ie none at all. So all they see are their own posts. There is no Render with Bricks option for them.
Personally I like this separation of content from design.
I think you are right about that. I would probably just remove the gutenberg editor as it is too confusing for a normal user and just use the classic editor. But with the high standard Thomas is putting into the product I would like to have this thought through by him.
But I think you are right for now. It is just … you know … expectations … I would love frontend editing in the first place where users just log in and click on an image and so on like in webflow. I also like Brizy, though I am not comparing.
You can use Bricks shortcode to output template in Gutenberg. Client can move that around but yes cannot edit it. Another way is create gutenberg blocks using Lazy Blocks or Pinegrow for the client. Basic with only the controls they need.
Hi @divadyx, i also am trying to copy how he implemented it in the video but I can’t get it to work. I am unsure if I typed the code wrong or have the hierarchy in my single post template wrong. I’m attaching screenshots of my setup.
The bricks content renders fine but the gutenberg content doesn’t.