Skip to content

Commit c3ac568

Browse files
Update list of reserved field handles
References statamic/cms#6794.
1 parent e9d5af4 commit c3ac568

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

content/collections/tips/reserved-words.md

+22-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ categories:
66
- development
77
- troubleshooting
88
---
9-
## As Field Names
9+
## Reserved Field Handles
1010

1111
This is the list of reserved words you shouldn't use as field names, in addition to the names of Statamic's [Tags](/tags) and [contextual variables](/variables).
1212

13+
- `blueprint`
1314
- `content_type`
1415
- `count`
1516
- `elseif`
@@ -21,8 +22,17 @@ This is the list of reserved words you shouldn't use as field names, in addition
2122
- `reference`
2223
- `resource`
2324
- `save`
25+
- `site`
2426
- `status`
27+
- `path`
28+
- `private`
29+
- `publish`
30+
- `published`
31+
- `route`
2532
- `unless`
33+
- `uri`
34+
- `url`
35+
2636

2737
:::warning
2838
Some of these _may_ work as field names in some circumstances, but can have unintended consequences, like overriding global data, behaviors, or creating issues with Vue components inside the Control Panel.
@@ -34,15 +44,23 @@ Some of these _may_ work as field names in some circumstances, but can have unin
3444
- `global` with any datatype storing data as an array when there is _also_ a global field of the same name.
3545
- `type` inside a Replicator set. The type is the handle of the set.
3646

37-
## As Form Fields
47+
### Entries
48+
49+
- `order`
50+
- `origin`
51+
- `parent`
3852

53+
## Forms
54+
55+
- `date`
3956
- `message`
4057
- `messages`
4158

42-
## As Taxonomy Group Names
59+
## Taxonomies
60+
4361
- `register`
4462

45-
## As Wildcard Variables in Statamic Routes
63+
## Reserved Wildcards in Statamic Routes
4664

4765
- `entry`
4866
- `taxonomy`

0 commit comments

Comments
 (0)