Skip to content

Instantly share code, notes, and snippets.

@babsgosgens
Created October 5, 2018 15:05
Show Gist options
  • Save babsgosgens/93b98e1509a485320c865c72cd2385ba to your computer and use it in GitHub Desktop.
Save babsgosgens/93b98e1509a485320c865c72cd2385ba to your computer and use it in GitHub Desktop.
article.json
{
"template": "layouts/item.html.twig",
"description": {
"en-GB": "Empty item page. Must only be used for single event, project, channel or article page."
},
"template_config": {
"attributes": {
"label": {
"en-GB": "Attributes"
},
"controls": {
"title": {
"value": {
"en-GB": "CTA",
"fr-FR": "CTA"
},
"label": {
"en-GB": "Page title"
},
"core": "core/text",
"type": "hidden"
},
"meta_description": {
"value": {
"en-GB": "CTA is a joint international institution of the African, Caribbean and Pacific (ACP) Group of States and the European Union (EU).",
"fr-FR": "CTA is a joint international institution of the African, Caribbean and Pacific (ACP) Group of States and the European Union (EU)."
},
"label": {
"en-GB": "Serp Description"
},
"core": "core/textarea",
"type": "hidden"
},
"meta_keywords": {
"value": {
"en-GB": "Agricultural policies, Regional Trade and Value Chains, ICT4Ag, Knowledge management",
"fr-FR": "Agricultural policies, Regional Trade and Value Chains, ICT4Ag, Knowledge management"
},
"label": {
"en-GB": "Serp keywords"
},
"core": "core/textarea",
"type": "hidden"
}
}
},
"config": {
"label": {
"en-GB": "Config"
},
"controls": {
"body_class": {
"value": "",
"label": {
"en-GB": "Body class"
},
"core": "core/text",
"type": "hidden"
},
"colour_background": {
"value": "",
"control": "project/colour_background"
},
"colour_theme": {
"value": "",
"control": "project/colour_theme"
}
}
},
"model": {
"label": {
"en": "Resource"
},
"controls": {
"data": {
"value": {
"adapter": "SCR",
"model": "articles",
"id": "07a2c3f6-56cb-4baa-926d-2287d5c90188"
},
"adapters": [
{
"value": "SCR",
"label": {
"en-GB": "SCR"
},
"models": [
{
"value": "articles",
"label": {
"en-GB": "Articles"
}
},
{
"value": "channels",
"label": {
"en-GB": "Channels"
}
},
{
"value": "events",
"label": {
"en-GB": "Events"
}
}
]
}
],
"control": "project/model/article_channel_event"
},
"analysis": {
"value": "true",
"control": "project/model/analysis"
},
"includeRelated": {
"value": "true",
"control": "project/model/include_related"
}
}
}
},
"containers": [
{
"name": {
"en-GB": "Single article"
},
"description": {
"en-GB": "Single article output – header and body"
},
"template": "containers/global/group/group.html.twig",
"template_config": {
"config": {
"label": {
"en-GB": "Settings"
},
"controls": {
"crown": {
"value": "",
"control": "project/crown"
},
"container_tag": {
"value": "article",
"control": "project/container_tag"
},
"container_class": {
"value": "",
"control": "project/container_class"
}
}
}
},
"containers": [
{
"name": {
"en-GB": "Article headline"
},
"description": {
"en-GB": "Article headline"
},
"template": "containers/articles/headline/headline.html.twig",
"template_config": [],
"frontender": "4ab9d027d6b0ba9ef60db2b22a14a213"
},
{
"name": {
"en-GB": "Body"
},
"description": {
"en-GB": "Article body"
},
"template": "containers/articles/body/body.html.twig",
"template_config": [],
"frontender": "7cb79bbd8a1ec43708e19c1dd537b1bf"
}
],
"frontender": "1cd9b7e05c9cf4f9dffb199e53700dde"
}
],
"alias": [],
"frontender": "a3ce079e130606c7f93a32a4c921628c",
"route": [],
"name": {
"en-GB": "Item page"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment