簡單的文字欄位描述

‍The plain text field is a Collection field that is best used for basic text that doesn’t need formatting like headings, inline styles, or inline media.

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:
  1. Establishing a simple text field
  2. Presenting simple text
  3. Categorizing a Collection list using the simple text field
  4. Organizing a Collection list using the simple text field
  5. 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 場地。

The Simple text field in the Webflow CMS

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 強制的 或不。

The Simple text field in the Webflow CMS

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.

  1. Integrate a text component in a Collection list or on a Collection page
  2. 勾選 獲取文字來自 checkbox 在 設定 window that pops up
  3. 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.

The Simple text field in the Webflow CMS

Categorizing a Collection list using the simple text field

To organize your Collection list using a simple text field:

  1. Select the Collection list you wish to categorize
  2. 繼續前往 設定面板 (D)
  3. 添加一個 類別 在下面 收藏清單設置
  4. Pick the appropriate simple text field in the first dropdown
  5. 在第二個欄位中選擇規則
  6. Determine the value if necessary
  7. 節省
The Simple text field in the Webflow CMS
Type image caption here (optional)

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:

  1. Select the Collection list you want to organize
  2. 訪問 設定面板 (D)
  3. 包括一個 排序 之內 Collection ListPreferences
  4. Pick your unadorned text field from the initial dropdown
  5. Select the arrangement in the second dropdown: alphabetical sequence (A-Z) or in reverse alphabetical sequence (Z-A).
  6. 輕敲 節省
The Plain text field in the Webflow CMS

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.

  1. Choose the button
  2. 繼續前往 Preferences panel (D)
  3. 包括一個 Stipulation (when this item is visible) beneath 有條件的可見性
  4. Pick your unadorned text field in the initial dropdown
  5. 選擇 已設定 在第二個下拉清單中
  6. 點選 節省
The Plain text field in the Webflow CMS

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.

了解有關條件可見性的更多資訊。

麥伊凡
Ewan Mak 的最新帖子 (看全部)