Remember the challenge from the last section? We configured Status and Attachment fields for our task collection and displayed them in the task list. Let’s reveal the solution!




Well done! Keep practicing these steps, and you’ll become more comfortable with the core features of NocoBase. Each step builds a solid foundation for future task management. Let’s keep going!
So far, your task management system can handle basic task information. However, task management often requires more than a few lines of text; sometimes, we need richer content and real-time interaction between team members.
You may have noticed NocoBase offers both Rich Text and Markdown editors, although these may not fully meet your needs. While the rich text editor is somewhat limited, the Markdown editor is easy to use but doesn’t support real-time preview.
)
Is there an editor that supports both real-time preview and extensive features? Absolutely! Markdown (Vditor) is the most powerful text editor in NocoBase, offering real-time preview, image uploading, and even voice recording. Plus, it’s built into the system and completely free!
Markdown(Vditor): Used to store Markdown and render it using Vditor editor, supports common Markdown syntax such as list, code, quote, etc., and supports uploading images, recordings, etc.It also allows for instant rendering, where what you see is what you get.
Let’s walk through enabling this powerful editor step-by-step. Remember our plugin manager? That’s where it’s found!




Your task collection is getting more feature-rich! With each step, your system’s capabilities expand. Next, let’s explore adjusting field arrangements for a cleaner interface.
As fields increase in the task collection, the page layout might appear cluttered. Not to worry, as NocoBase’s flexibility allows you to rearrange fields easily.
Adjusting Field Positions:

This makes the layout more aligned with your preferences. Now, let’s add a comment function to the task collection to make team collaboration even easier.
Having a task description is helpful, but sometimes team members need to add comments, discuss issues, and record feedback. Let’s start implementing this together.
Comments Plugin (Commercial Plugin): Provides comment collection template and block to add commenting functionality for any collection.
Note: When adding comments, be sure to link the target collection through a relationship field to prevent comment data conflicts.
In the Plugin Manager, upload and enable the Comments Plugin. Once the plugin is enabled, a new “Comments Collection” option will appear in the data source. Click Add new (Add & update)> Upload Plugin > Drag in the zip file > Submit. After searching for comments, you’ll see the comment plugin! After enabling it, enter the data source and see the Comments Collection option – installation successful!


Switch to the data source and create a new comments data collection called Comments.
Now that we have a Comments Collection, you might wonder if we can simply add a comments section to the page. Not so fast – let’s think it through first: Each task should have its own comments section, and the relationship between comments and tasks should be many-to-one. So, how do we link comments to tasks?
Exactly! We’ll use a relationship field to create this connection in NocoBase.
NocoBase allows us to use relationship fields to establish links between collections at the data level, like building bridges that tightly connect related data.

Why Choose a Many-to-One Relationship?
Why are we choosing a many-to-one relationship instead of a one-to-many or another type? Think about it: Each task can have multiple comments, so multiple comments can point to the same task. For this, we’ll create a many-to-one field in the comments collection that links to the tasks in the task collection.
A clever thought might have occurred to you: Since the comments and tasks have a many-to-one relationship, can we also create a one-to-many field in the task collection that points to the comments collection? Exactly, well done! One-to-many and many-to-one are reciprocal relationships, so we can create a one-to-many field in the task collection that links to the comments collection. You’re doing great!
Next, let’s create a many-to-one field in the comments collection to link it with the task collection. We can name this field Associated Task (belong_task). During configuration, note these key settings:
Example for Foreign Keys and Target Collection Field Identification: Let’s clarify with an example:
Imagine you’re handling a stack of high school transcripts, and your job is to link each transcript to the student it belongs to. Let’s say a transcript has the following information:
- Name: Zhang San
- Class: Senior Class 35
- Exam ID: 202300000001
- ID Number: 111111111111
Now, let’s assume you want to use Name and Class to find Zhang San. However, since there might be many students named Zhang San in the same class, identifying them accurately can be challenging.
That’s where a unique identifier, such as the Exam ID, becomes useful. Using the exam ID, you can precisely identify each student’s transcript. For instance, if you search with the Exam ID “202300000001,” the school will quickly respond: “This transcript belongs to Zhang San, the one with glasses in row three of Senior Class 35.”
The same logic applies to setting up the comments relationship. A unique identifier from the task collection, like the ID, can be saved in the comments to link each comment to the corresponding task.
This concept of foreign keys is the core of implementing many-to-one relationships – simple, right?
In the comments collection, we save the unique task_id field from the task collection, binding comments to their associated tasks.
Once we set up the many-to-one relationship in NocoBase, we also need to consider what happens to the comments if a task is deleted. You have several options:
Finally, select Create Reverse Relationship Field in Target Collection to make it easy to view all related comments from within a task. This improves data management efficiency.
The location of relationship fields in NocoBase determines how data is accessed. To make the comments viewable directly from the task collection, we’ll create a one-to-many reverse relationship field in the task collection, linking it to the comments collection.
When you reopen the task collection, you’ll see a comments field marked with a one-to-many relationship, allowing you to easily view and manage all related comments!
Now comes an exciting moment: return to the edit popup, create a comment block, and check the needed features. Done!

Let’s style the page layout. Hover over the top-right of the edit button, choose a wider popup, and use what we’ve learned to drag the comment block to the right side of the popup. Perfect!

Some of you may be wondering: “I want to set up comments too!” Don’t worry; I have another free option prepared for you.
If you haven’t purchased the comments plugin, we can still set up a similar comments feature by creating a custom collection.
Create a New Comments collection:

Create a Comments List Block on the Page:

Now you know how to enrich task content with Markdown (Vditor) and add a comments feature to tasks! Your task management system now has a complete functional foundation – you’re one step closer to creating a professional task management tool!
Keep exploring and practicing; NocoBase has endless possibilities. If you run into any issues, don’t worry – I’ll be here to guide you through every step.
In the next chapter (Chapter 5: Tabs & Dynamic blocks), we’ll dive deeper into more block functions in NocoBase, helping you take your system to the next level. Keep up the great work!
Explore freely and unleash your creativity! If you encounter any challenges, don’t hesitate to consult the NocoBase Official Documentation or join the NocoBase Community for discussions.