Skip to content

Commit 10a40d0

Browse files
Len van EssenSvanteRichter
authored andcommitted
Make readme more clear on the templatefields
1 parent 800bdb5 commit 10a40d0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ the Bolt 3.1+ version**
5353
```
5454
5555
3. Add the `is_translateable` argument to all fields you want to be
56-
translatable. To translate templatefields you simply tag the templateselect
57-
with `is_translateable` and all the templatefields will be translateable.
56+
translatable.
5857
5958
```
6059
[...]
@@ -64,8 +63,18 @@ the Bolt 3.1+ version**
6463
group: content
6564
is_translateable: true
6665
[...]
67-
```
6866
67+
```
68+
To translate templatefields you simply tag the templateselect
69+
with `is_translateable` and all the templatefields will be translateable.
70+
```
71+
[...]
72+
templateselect:
73+
type: templateselect
74+
is_translateable: true
75+
filter: '*.twig'
76+
[...]
77+
```
6978
4. Add the hidden fields to all the contenttypes that have translateable
7079
fields, two for each locale: one called `your_localedata` and one called
7180
`your_localeslug`. So for the above `locales` example you would put:

0 commit comments

Comments
 (0)