Skip to content
Endel Dreyer edited this page Jan 19, 2015 · 2 revisions

hook-admin automatically reads your schema definition file (schema.yaml). Any additional configuration and interface options must be defined on config/app.yaml file.

config/app.yaml

Top-level configurations

credentials

credentials:
  endpoint: http://localhost:4665/
  app_id: 3
  key: 94eecceccc3f5c2a077deb1a1b6c9777

collections

collection

collections:
  books: # collection name
    label: "My Books"
    fields: 
      - field_name
      # fields to display as fallback for each section view

menu

collections:
  books:
    menu:
      icon: book
      order: 2

dashboard

collections:
  books:
    dashboard:
      title: Últimos projetos
      sort: ['_id', 'desc']
      fields: ['name']
      limit: 5

list

collections:
  books:
    list:
      description: Hello there!
      actions: ['show', 'edit', 'delete']
      fields: ['name', 'client_name', 'auth']

filters

collections:
  books:
    filters:
      - field: highlights
        label: With highlight
      - field: name
        type: like
      - field: client_name
        type: like
Clone this wiki locally