简单文本字段描述

‍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” checkbox.

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 的最新帖子 (查看全部)