diff --git a/site/snippets/docs/panel-field-options.php b/site/snippets/docs/panel-field-options.php index 5becdd4f85..b554d35130 100644 --- a/site/snippets/docs/panel-field-options.php +++ b/site/snippets/docs/panel-field-options.php @@ -71,6 +71,46 @@ value: "{{ page.slug }}" ``` + + +### Custom icons + +You can also fetch custom icons with queries. + +```yaml +category: + label: Category + type: + options: + type: query + query: site.children.published + text: "{{ page.year }} - {{ page.title.upper }}" + value: "{{ page.slug }}" + icon: "{{ page.customIcon }}" +``` + + + + + +### Custom info text + +You can also fetch custom info text with queries. + +```yaml +category: + label: Category + type: + options: + type: query + query: site.children.published + text: "{{ page.year }} - {{ page.title.upper }}" + value: "{{ page.slug }}" + info: "{{ page.description }}" +``` + + + ### Numeric keys If you want to store numeric keys as values, you have to use the long notation with `value` and `text`: