From ae05a7033786ff8671036cc6f5e44adf26674df9 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 3 Nov 2021 11:34:48 +0100 Subject: [PATCH] menu --- docs/websites/readme.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/websites/readme.md b/docs/websites/readme.md index 4c78d105b..953028885 100644 --- a/docs/websites/readme.md +++ b/docs/websites/readme.md @@ -47,3 +47,42 @@ Attributes: - campus:references (optional) - program:references (optional) - session:references (optional) + +## websites/Menu + +Attributes: +- university:references +- website:references +- title:string +- identifier:string + +## websites/menu/Item + +Attributes: +- university:references +- website:references +- menu:references +- title:string +- parent:references +- position:integer +- kind:integer (enum: page, url) +- about:references (polymorphic) + +## Export du menu + +/data/menu.yml +```yaml +primary: + - title: Accueil + target: / + - title: Formations + target: /formations + children: + - title: DUT + target: /formations/dut + - title: ENT + target: https://ent.u-bordeaux3.fr +legal: + - title: Mentions légales + target: /mentions-legales +``` -- GitLab