Skip to content

Instantly share code, notes, and snippets.

@erochest
Created May 3, 2012 15:09
Show Gist options
  • Save erochest/2586346 to your computer and use it in GitHub Desktop.
Save erochest/2586346 to your computer and use it in GitHub Desktop.
[Exhibits]
id-column=eid
result-type=Exhibits
table={$prefix}_exhibits
flag=public
tagged=yes
[Exhibits.title]
[Exhibits.description]
[Exhibits.featured]
name=Featured Exhibit
facet=yes
[Sections]
table={$prefix}_sections
flag=exhibit_id->{$prefix}_exhibits.id->public
; or
[Sections]
table={$prefix}_sections
link.parent=exhibit_id->{$prefix}_exhibits.id
flag={$parent}->public
; or
[Sections]
table={$prefix}_sections
parent=exhibit_id->Exhibits
[Sections.title]
[Sections.description]
{
"exhibits": {
"id-column": "eid",
"result-type": "Exhibits",
"table": "{$prefix}_exhibits",
"flag": "public",
"tagged": true,
"fields": [
"title",
"description",
{ "field": "featured", "label": "Featured Exhibits", "facet": true }
],
"children": {
"sections": {
"table": "{$prefix}_sections",
"parent": "exhibit_id",
"fields": [ "title", "description" ]
}
}
}
}
exhibits: {
id-column: eid
result-type: Exhibits
table: "{$prefix}_exhibits"
flag: public
tagged: true
fields:
- title
- description
- { field: featured, label: "Featured Exhibits", facet: true }
children:
-
sections: {
table: "{$prefix}_sections"
parent: exhibit_id
fields:
- title
- description
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment