File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed
content/docs/content-creation Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Fields
3
3
slug : content-creation/fields
4
4
description : null
5
5
date : 2022-03-14T08:42:21.626Z
6
- lastmod : 2023-08-21T09:19:31.587Z
6
+ lastmod : 2023-09-12T18:17:25.997Z
7
7
weight : 200.2
8
8
---
9
9
@@ -778,8 +778,11 @@ instance be used to reference an author, or a related blog post.
778
778
779
779
- ` contentTypeName ` : The name of the content-type to link.
780
780
- ` contentTypeValue ` : The type of link/value you want to add. This can be ` slug ` , or ` path ` .
781
+ - ` multiple ` : Specify if you want to select one or multiple relationships (optional).
781
782
782
- ``` json {{ "title": "Usage" }}
783
+ #### Example 1
784
+
785
+ ``` json {{ "title": "Usage of single selection" }}
783
786
{
784
787
"title" : " Session" ,
785
788
"name" : " session" ,
@@ -789,12 +792,33 @@ instance be used to reference an author, or a related blog post.
789
792
}
790
793
```
791
794
792
- ``` yaml {{ "title": "Outcome" }}
795
+ ``` yaml {{ "title": "Outcome of single selection " }}
793
796
---
794
797
session : /session-slug/
795
798
---
796
799
```
797
800
801
+ #### Example 2
802
+
803
+ ``` json {{ "title": "Usage of multi-selection" }}
804
+ {
805
+ "title" : " Session" ,
806
+ "name" : " session" ,
807
+ "type" : " contentRelationship" ,
808
+ "contentTypeName" : " session" ,
809
+ "contentTypeValue" : " slug" ,
810
+ "multiple" : true
811
+ }
812
+ ```
813
+
814
+ ``` yaml {{ "title": "Outcome of multi-selection" }}
815
+ ---
816
+ session :
817
+ - /session1-slug/
818
+ - /session2-slug/
819
+ ---
820
+ ```
821
+
798
822
## customField
799
823
800
824
The ` customField ` field type allows you to create and add your own fields to render.
You can’t perform that action at this time.
0 commit comments