statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

allow to specify a specific entry for entry field type instead of a whole collection #994

Closed videni closed 3 months ago

videni commented 1 year ago

Can we specify a specific entry for entry field type instead of a whole collection?

tile blueprint

  - field:
      icon: entries
      mode: default
      type: entries
      create: true
      display: Manufacturer
      listable: hidden
      max_items: 1
      visibility: visible
      collections:
      - ceramics:manufacturer  #  manufacturer is another blueprint in the same collection `ceramics` ,
      # I don't want the blueprint can select itself(tile) as a manufacturer
      hide_display: false
      instructions_position: above
    handle: manufacturer
duncanmcclean commented 3 months ago

You could probably achieve this now by creating a query scope to filter down the available entries and specify the query scope in the entry field's config.

Related: statamic/cms#8456