How do I customize the display of dynamically selected data in a Liquid template's settings?

Discussions

Ask a Question
Back to All

How do I customize the display of dynamically selected data in a Liquid template's settings?

(edited)

I have section configuration as below. In type: select attributes options I want to get data from content_type nav_items instead of setting data static.

related_service.liquid

---
name: Related Services
icon: default
keep_icon: true
settings:
- label: "Navigation items (Click button for choose list services of mega menu)"
  id: nav_items
  type: content_type

blocks_label: Related Services
blocks:
- name: Related Services
  type: service_related_detail
  settings:

  - label: Related server
    id: related_services
    type: select
    options:
			/// I want get list from model nav_items
    required: true

default:
  settings:
    title: Related Services

presets:
- name: Related Services
  category: Services Info Page
  settings:
    title: Related Services
  blocks: []

---