From 41ae744d081bbc3423a64981d6e42f7872efb987 Mon Sep 17 00:00:00 2001 From: timotheegoguely Date: Thu, 6 Feb 2025 11:35:59 +0100 Subject: [PATCH] fix: restore projects and client fields for client blueprint #117 --- public/site/blueprints/users/client.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/public/site/blueprints/users/client.yml b/public/site/blueprints/users/client.yml index 8cbba1c..fbdf2e6 100644 --- a/public/site/blueprints/users/client.yml +++ b/public/site/blueprints/users/client.yml @@ -33,12 +33,28 @@ sections: value: Design to Pack link: https://designtopack.morphozbygroupepochet.com/ icon: open - - label: Client - value: "{{ user.client.toPage.title }}" - icon: user - label: fr: Projet(s) en cours en: Current project(s) link: https://designtopack.morphozbygroupepochet.com/ value: "{{ user.projects.toPages.count }}" icon: folder + content: + label: ' ' + type: fields + fields: + client: + type: pages + multiple: false + query: site.find("clients").childrenAndDrafts + subpages: false + image: + query: page.logo.toFile + layout: cardlets + required: true + width: 1/2 + projects: + label: Projets + type: pages + query: page('projects').children + width: 1/2