Flexibility of custom modules in blog post template

Hi! I am developed a custom module for a client.

I used my new module in the blog-post.html above the:

{{ content.post_body }}

But with this implementation the client is only possible to place it once and on this fix position.

But the client requests for more flexibility. Is it possible to place the new module everywhere and multiple times in the blog post?

I found the following post. (So I assume it is not possible.)

Is there a common way to solve this issue or is this client requirement not feasable?

Hi @ReneMuhl, I don’t think this is feasible. Currently it’s not possible to add or remove modules from a blog post in the editor, as mentioned in your link, they have to be added in the template. I don’t believe you can interpolate modules into the middle of the post_body dynamically either.

@ReneMuhl Yea, currently it’s not possible to move modules around in blog posts.

What I’ve done to get around this in the meantime is create a module with a repeater with a ‘content type’ choice field. Then use if statements for different types of content (regular text, quote, cta, etc).

If you need to use the blog summary somewhere you’ll have to at least use the content.post_body at the beginning of the post but after that all content could be done through the repeater module.

All I can say is stay tuned :eyes:

Hi @ReneMuhl,

your client requirements are feasable but as @piersg said - there is (currently) no option to get a more flexible blog post. The only solution would be to

a) create a custom module with a repeater as @alyssamwilie mentioned (you can also create whole layouts like 2-col, 3-col and whatever your customer needs)

b) upvote my HubSpot idea here
best,

Anton

We postponed our issue. Thanks for all your answers.