sanity-plugin-tags-v4 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -128,6 +128,19 @@ If you already have a sanity schema that contains a tag-like structure and want
128
128
  }
129
129
  ```
130
130
 
131
+ To use the title and slug fields from the referenced schema type, set the custom field mappings:
132
+ ```javascript
133
+ {
134
+ // ...
135
+ customLabel: 'title'
136
+ customValue: 'slug'
137
+ // ...
138
+ }
139
+ ```
140
+
141
+ The plugin automatically handles slug objects by extracting the `.current` value, so you can use `'slug'` directly.
142
+
143
+
131
144
  ### includeFromRelated
132
145
 
133
146
  `default: false`