The simple text field is a 收藏 field most suitable for concise text blocks or a short passage associated with a Collection item — fundamental text content that doesn’t require special styling like titles, inline designs, or inline media such as images or video. You can also utilize simple text fields to categorize and organize 收藏清單 or display specific elements utilizing conditional visibility on 收藏頁面 or within lists.
Multi-line simple text fields in the CMS simplify the process of entering text across multiple lines to input, store, and edit text that wouldn’t fit in a single-line Basic text field. The text is presented in the browser as unformatted text, enclosed in an element.
To apply any inline formatting (including line breaks) to CMS content, opt for the 富文本字段 反而。
Common applications
- Brief text that doesn’t require any formatting
- Names and headings
- Bios of team members
- Descriptions of products
- Details of events
Expert tip: Simple Text is extremely useful when you aim to restrict the formatting capabilities of collaborators. Unlike the 富文本字段, simple text doesn’t permit any inline styling, preserving a clean output.
Topics covered in this lesson:
- Establishing a simple text field
- Presenting simple text
- Categorizing a Collection list using the simple text field
- Organizing a Collection list using the simple text field
- Configuring conditional visibility using the simple text field
Establishing a simple text field
A simple text field can be appended to a new or existing Collection. In Collection settings, select 新增字段 and then pick the Simple Text 場地。
Prior to saving the field, specify the Text field type. You can also establish a 最小字元數 和/或一個 最大字元數 permitted for this field. Additionally, like any field, you can include a 幫助文本 and determine if the field is 強制的 或不。
Text field varieties
A simple text field enables you to incorporate a brief text block or a single paragraph to a Collection item. As a designer, you can define the type and purpose of a text field by setting the text field variety:
- Single-line (for concise text)
- Multi-line (for lengthier text)
This will alter how the text field is shown in the CMS Panel and the Editor.
Presenting simple text
The simple text field can be linked to any text component.
- Integrate a text component in a Collection list or on a Collection page
- 勾選 獲取文字來自 checkbox 在 設定 window that pops up
- Connect it to the pertinent simple text field from the 字段下拉選單
You can also access these Settings by choosing the text component and either tapping on the settings icon next to the component label on the canvas or by navigating to the Settings panel (D). To detach the connection, uncheck the “Obtain text from” 檢查kbox.
Categorizing a Collection list using the simple text field
To organize your Collection list using a simple text field:
- Select the Collection list you wish to categorize
- 繼續前往 設定面板 (D)
- 添加一個 類別 在下面 收藏清單設置
- Pick the appropriate simple text field in the first dropdown
- 在第二個欄位中選擇規則
- Determine the value if necessary
- 打 節省
The supported filter criteria for the simple text field and values include:
- 等於 – scans for Collection items with a simple text string identical to the value specified for this rule
- 不相等 – searches for Collection items with a simple text string that differs from the value set for this rule
- 已設定 – seeks Collection items that have any value set for this simple text field
- 未設定 – looks for Collection items lacking any value set for this simple text field
Find out more about categorizing Collection lists.
Essential to note
已設定 和 未設定 aren’t accessible for the 姓名 text field, which is obligatory by default, and therefore is always set.
Organizing a Collection list using the simple text field
You can utilize simple texts to arrange Collection items by name or surname or any text field:
- Select the Collection list you want to organize
- 訪問 設定面板 (D)
- 包括一個 排序 之內 Collection ListPreferences
- Pick your unadorned text field from the initial dropdown
- Select the arrangement in the second dropdown: alphabetical sequence (A-Z) or in reverse alphabetical sequence (Z-A).
- 輕敲 節省
Adjusting visibility conditions utilizing the unadorned text field
You are able to set visibility conditions to display or conceal individual components within a Collection list or on a Collection page using the unadorned text field. For instance, if there is a button component linked to both a plain text field and a link field. You can define two criteria to make certain that the button appears on the page only when the link and the text field are configured.
- Choose the button
- 繼續前往 Preferences panel (D)
- 包括一個 Stipulation (when this item is visible) beneath 有條件的可見性
- Pick your unadorned text field in the initial dropdown
- 選擇 已設定 在第二個下拉清單中
- 點選 節省
Add an additional requirement for the link field.
Professional suggestion
Instead of fabricating intricate conditional visibility principles like this, you can tick the essential preference for fields that are consistently requisite.
- 包含或消除工作區點和成員 - 2024 年 4 月 15 日
- 定心框總結 - 2024 年 4 月 15 日
- 儲存站點以供日後參考 - 2024 年 4 月 15 日