logologo
Get Started
Guide
Development
Plugins
API
English
简体中文
Get Started
Guide
Development
Plugins
API
English
简体中文
logologo
Overview

Blocks

Overview

Data Blocks

Table
Form
Details
List
Grid Card
Chart

Filter Blocks

Form

Other Blocks

Action Panel
Iframe
Reference block
Markdown
JS Block

Block Settings

Data Scope
Layout
Block Linkage Rules
Field Linkage Rules
Sorting Rules
Block Deletion
Block Title

Fields

Overview

Generic Settings

Table Column
Detail Form Item
Filter Form Item
Form Item

Specific Settings

Date
File Manager
Sub-form
Select
Picker
Sub-table
Sub-detail
Title
JS Field
JS Item
JS Column

Field Settings

Default Value
Field Label
Show Label
Field Tooltip
Data Scope
Field Component
Number Format
Pattern
Required
Title Field
Validation Rules
Association Field

Actions

Overview

Action Settings

Edit Button
Double Check
Assign Values
Bind Workflow
Edit Popup
Action Linkage Rules

Action Types

Add New
View
Delete
Edit
Import
Import Pro
Export
Export Pro
Export Attachments
Filter
Link
Pop-up
Refresh
Submit
Trigger Workflow
Update Record
Bulk Update
JS Action
Action Permissions

Advanced

Linkage Rules
Event Flow
Variables
RunJS
Previous PageReference block
Next PageJS Block

#Markdown Block

#Introduction

The Markdown block can be used without binding to a data source. It uses Markdown syntax to define text content and can be used to display formatted text.

#Add Block

You can add a Markdown block to a page or a popup.

20251026230916

You can also add an inline (inline-block) Markdown block within Form and Details blocks.

20251026231002

#Template Engine

It uses the Liquid template engine to provide powerful and flexible template rendering capabilities, allowing content to be dynamically generated and displayed in a customized way. With the template engine, you can:

  • Dynamic Interpolation: Use placeholders in the template to reference variables, for example, {{ ctx.user.userName }} is automatically replaced with the corresponding user name.
  • Conditional Rendering: Supports conditional statements ({% if %}...{% else %}), displaying different content based on different data states.
  • Looping: Use {% for item in list %}...{% endfor %} to iterate over arrays or collections to generate lists, tables, or repeating modules.
  • Built-in Filters: Provides a rich set of filters (such as upcase, downcase, date, truncate, etc.) to format and process data.
  • Extensibility: Supports custom variables and functions, making template logic reusable and maintainable.
  • Security and Isolation: Template rendering is executed in a sandboxed environment, preventing the direct execution of dangerous code and enhancing security.

With the Liquid template engine, developers and content creators can easily achieve dynamic content display, personalized document generation, and template rendering for complex data structures, significantly improving efficiency and flexibility.

#Using Variables

Markdown on a page supports common system variables (such as current user, current role, etc.).

20251029203252

Markdown in a block row action popup (or sub-page) supports more data context variables (such as current record, current popup record, etc.).

20251029203400

#Localization

The built-in t filter supports localization of text.

Note: The text needs to be entered into the localization table in advance. In the future, it will be optimized to support custom generation of localization terms.

20251026223542

#QR Code

QR codes can be configured in Markdown.

20251026230019

<qr-code value="https://www.nocobase.com/" type="svg"></qr-code>