Fix Wiki Deploy Post Titles

This commit is contained in:
2026-04-30 20:17:02 +02:00
parent f480815e5d
commit 78133efdf4
4 changed files with 87 additions and 1 deletions
+5 -1
View File
@@ -833,7 +833,11 @@ func (ctx *wikiContext) renderReferenceList(values []any) string {
func (ctx *wikiContext) resolveRowName(category string, row map[string]any) string {
spec := specForDataset(category)
for _, field := range spec.NameFields {
nameFields := spec.NameFields
if category == "classes" {
nameFields = []string{"Name", "Plural", "Lower", "CLASS", "Label", "Short"}
}
for _, field := range nameFields {
if value, ok := lookupField(row, field); ok {
if text := ctx.resolveTextValue(value, nil); text != "" {
return text