refactor: move coverFiles to plugin as page/file methods
Replace GeoformatPage model with a plugin registering coverFiles as a pageMethod (available on all pages) and coverLabel as a fileMethod to display "Carte [title]" for map children files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c8c544e427
commit
033023f6ef
4 changed files with 22 additions and 13 deletions
|
|
@ -22,6 +22,7 @@ tabs:
|
|||
label: Media de couverture
|
||||
type: files
|
||||
query: page.coverFiles
|
||||
text: "{{ file.coverLabel }}"
|
||||
multiple: false
|
||||
width: 1/2
|
||||
text:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ tabs:
|
|||
cover:
|
||||
label: Image de couverture
|
||||
type: files
|
||||
query: page.coverFiles
|
||||
text: "{{ file.coverLabel }}"
|
||||
multiple: false
|
||||
width: 1/2
|
||||
introduction:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue