mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
A feature's guide now sits under the menu it is used from, read from the templates rather than from where somebody once put it: Header-Bar, All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar (Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists, Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several menus (editor, history, theme, translations, email, troubleshooting) are in General. - Each area has a README mapping its menu entries to their guides and to the template or server module that implements them. Board-Header/README.md lists all 40 Board View entries with the template boardBody.jade renders; five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of their own yet and say so. - Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all of them with their English labels. - Pages keep their file names. Where a released changelog links an old path, a "# Moved" page stays there and points to the new one; test-menu.sh skips folders holding only those. - Undo was filed under Login; it is General/Undo now. - Every link in docs, code comments, scripts and tests follows the move; docsLinksResolve checks them all. Tests that read a doc follow it to its new place. boardViewSettings now fails when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or names a template boardBody.jade does not render. Thanks to xet7 !
78 lines
3.1 KiB
Markdown
78 lines
3.1 KiB
Markdown
[Custom Fields issue](https://github.com/wekan/wekan/issues/807)
|
|
|
|
## To translators, about the word Custom
|
|
|
|
See other feature for description of Custom [Customize Translations](../../General/Translations/Customize-Translations.md)
|
|
|
|
## 1) Click: Board hamburger menu / Custom Fields
|
|
|
|
<img src="https://wekan.fi/custom-field-1.png" width="50%" alt="Custom Field Step 1" />
|
|
|
|
## 2) Click: Create Field, add details and Save
|
|
|
|
<img src="https://wekan.fi/custom-field-2.png" width="50%" alt="Custom Field Step 1" />
|
|
|
|
## 3) Click: Card Details hamburger menu / Edit custom fields
|
|
|
|
<img src="https://wekan.fi/custom-field-3.png" width="100%" alt="Custom Field Step 1" />
|
|
|
|
## 4) Click: Your Custom Field name to insert it to Card
|
|
|
|
<img src="https://wekan.fi/custom-field-4.png" width="100%" alt="Custom Field Step 1" />
|
|
|
|
## 5) Click: Your selection from your Custom Field
|
|
|
|
<img src="https://wekan.fi/custom-field-5.png" width="100%" alt="Custom Field Step 1" />
|
|
|
|
## 6) Custom Field is shown at Minicard and Card Details
|
|
|
|
<img src="https://wekan.fi/custom-field-6.png" width="100%" alt="Custom Field Step 1" />
|
|
|
|
## String Template variables
|
|
|
|
A String Template formats each nonempty value entered on the card, then joins
|
|
those results using the field's separator. The same format appears on minicards
|
|
and in card details. Available variables are:
|
|
|
|
| Variable | Value |
|
|
| --- | --- |
|
|
| `%{value}` | The current item entered in this custom field |
|
|
| `%{card.title}` | Card title |
|
|
| `%{board.title}` | Board title |
|
|
| `%{list.title}` | List title |
|
|
| `%{swimlane.title}` | Swimlane title |
|
|
|
|
Names are case-insensitive. The spelling `{%card.title}` (percent sign inside
|
|
the braces) also works. Titles and formats update while the card is open.
|
|
Linked cards use their source card's context, just as they use its custom-field
|
|
values. Unknown variables or unavailable context remain literal text. These
|
|
variables do not expose arbitrary document properties or other custom fields.
|
|
|
|
Append `|urlencode` to encode a value as a URL parameter. For example, a label
|
|
printer link can use this format:
|
|
|
|
```text
|
|
[Print label](https://printer.example/print?label=%{value|urlencode}&card=%{card.title|urlencode}&lane=%{swimlane.title|urlencode})
|
|
```
|
|
|
|
Spaces, Unicode and characters such as `&`, `#` and `?` are encoded within each
|
|
parameter, rather than changing the URL's structure. The normal Markdown viewer
|
|
still handles links and sanitization. Variable contents are substituted once;
|
|
text inside a card title is never evaluated as another template.
|
|
|
|
The existing regular-expression replacement applies to the current item and
|
|
can be mixed with the variables:
|
|
|
|
```text
|
|
${"regex":"^([A-Z]{2})-(.*)$","flags":"i","replace":"$1 / $2"}
|
|
```
|
|
|
|
Invalid regex definitions remain visible instead of preventing card rendering.
|
|
This is the Custom Fields String Template feature requested in
|
|
[#3815](https://github.com/wekan/wekan/issues/3815); Rules action templates use
|
|
their separate `{card}`, `{board}` and other rule variables.
|
|
|
|
To copy field values between two cards, for example from each worker's card
|
|
to a main card on another board, see
|
|
[Linked custom fields](Linked-Custom-Fields.md).
|