How to create a formatted and structured blog with bubble

Hey,

I need advice on what to do in this situation:

I want to create a blog page, and my database with information about each blog is already prepared.

Let me provide an example for better understanding:

Each blog contains different types of texts (titles, highlighted headers, body text, and so on). It starts with a title, then a header with body text, followed by an image between the texts, another header with body text, and so on. I don’t quite understand how to reflect this in Bubble. Creating a repeating group won’t quite work because it won’t be able to maintain the text structure. I could create individual groups with formatted text, but then scalability gtfo. This would make the database more complex and this will lead to poor performance of the entire website.

I hope there are some giga brains who can advise me on how to proceed in this case :stuck_out_tongue:

How is your database object structured ?

I believe it would be more efficient if you had the content stored as HTML or text with BBCode.

Do you know about the official plugin “Rich text editor” ?
I believe this is the easiest way to do what you need as it gives you advanced BBCode formatting options to write your posts.
This is a WYSIWYG

Have a datatype called BlogSection

Have fields for each of the required items:
e.g.
Heading
Subheading
Image
Body

etc. (or whatever makes sense for your app). And of course, a field to link the the BlogPost.

A Blog Post is then made up of a collection of BlogSections… some will contain Titles, some will contain Images, some will contain body content etc.

Then just use a RG to display all the BlogSections for the BlogPost, and show the required elements conditionally inside each cell, depending on the type of content the BlogSection contains.

1 Like

Yeah, I am aware of this option, but the problem is that I have a dynamic page, and each post has its own text structure. This method seems suitable for pages where dynamics don’t matter

I think this method is one of those that will be difficult to scale

It is not difficult to scale when done correctly

This is pretty much the standard way (at least for me) to build structured blog post pages (or emails, or web-pages/landing pages, or any kind of structured content).

If you set it up correctly it’s simple to manage, and actually a lot more scalable and manageable than having all the content in a single database entry.

I’m just not entirely sure how quickly my website will perform with a vast amount of data in the database. I’ll have a minimum of 100 posts, and each post requires a lot of information. Just imagine how many h1, h2, h3, h4 I’ll have in one post, and there will be hundreds of such posts…

The Rich Text Editor which was mentioned earlier in this thread would solve the need to do that manually. Everything else (Title, description, etc) you just have to create once and the repeating group will handle everything else.

Thanks for the advice. At first, it seemed to me that this plugin is intended for users so that they can format text on their end. I’ll need to test it then more :smile:

1 Like

If you need any SEO benefits from your Blog, which 99% of the time people do, the RTE plugin will not help much to achieve optimal SEO benefits as it does not produce header tags for text, nor does it allow for alt tags for images, nor can you create captions for images.

Not a problem…I have more than 100 posts and no issues

Here’s a screenshot for reference, and in this case, I’m not entirely sure how to edit “current page’s blog’s content.” This field contains titles mixed with regular text (knowing the number of titles, I could potentially create RP or a couple of regular groups), but because each blog carries a different number of titles, I’m just clueless about how to do this while maintaining an overall beautiful structure.

That’s precisely the reason you need to use a RepeatingGroup.

This topic was automatically closed after 70 days. New replies are no longer allowed.