Unverified Commit ca1c6c8d authored by Adrien Risser's avatar Adrien Risser Committed by GitHub
Browse files

feat(evenements): Ajoute les liens vers articles, documents et types de POIs (#712)

parent c86f0de6
......@@ -104,6 +104,10 @@ module.exports = {
type: "boolean",
default: false,
},
evenements: {
via: "articles",
collection: "evenement",
},
},
collectionName: "articles",
info: {
......
......@@ -20,10 +20,7 @@
},
"categorie": {
"type": "enumeration",
"enum": [
"structure",
"professionnel"
],
"enum": ["structure", "professionnel"],
"required": true
},
"description": {
......@@ -36,6 +33,10 @@
},
"thematiques": {
"collection": "thematique"
},
"evenements": {
"via": "types_poi",
"collection": "evenement"
}
}
}
......@@ -32,8 +32,8 @@
"via": "etapes"
},
"evenements": {
"collection": "evenement",
"via": "etapes"
"via": "etapes",
"collection": "evenement"
},
"ordre": {
"type": "integer"
......
......@@ -33,6 +33,21 @@
"thematique": {
"model": "thematique",
"via": "evenements"
},
"articles": {
"collection": "article",
"via": "evenements",
"dominant": true
},
"documents": {
"collection": "parentheque-documents",
"via": "evenements",
"dominant": true
},
"types_poi": {
"collection": "cartographie-types",
"via": "evenements",
"dominant": true
}
}
}
......@@ -18,7 +18,11 @@
"type": "text"
},
"fichier": {
"allowedTypes": ["images", "files", "videos"],
"allowedTypes": [
"images",
"files",
"videos"
],
"model": "file",
"plugin": "upload",
"required": true,
......@@ -32,6 +36,10 @@
"thematique": {
"model": "thematique",
"via": "parentheque_documents"
},
"evenements": {
"via": "documents",
"collection": "evenement"
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment