marionnewlevant/annotated-notes
Composer 安装命令:
composer require marionnewlevant/annotated-notes
包简介
Field for multiple notes with automatic annotation
README 文档
README
Field for multiple notes with automatic annotation
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Annotated Notes Overview
Annotated Notes is a varient of the Table fieldtype, where the table has two columns:
- Note, a text field (handle:
note) - Annotation a non-editable text field whose content is generated by twig (handle:
annotation)
Configuring Annotated Notes
When you create an Annotated Notes field, you specify the twig code which will be parsed after the element is saved to generate the content for the annotations.
You can also (under Advanced) specify the user visible labels for the note and annotation columns (the handles are not changed).
Using Annotated Notes
An Annotated Notes field behaves like a
Table field.
It has two columns, Note and Annotation.
When you save an Element with an Annotated Notes
field, any rows which have a Note but no Annotation,
will have the Annotation set to the value of the
parsed twig. When you edit an Element with an Annotated Notes
field, the Notes can be modified, but the Annotations
are not editable.
On the front end, the field behaves like any other
Table
field. The handles for the columns are note and annotation.
Brought to you by Marion Newlevant Many thanks to André Elvan, whose Preparse Field was a major influence.
统计信息
- 总下载量: 3.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-27