🎨 Database template fields support access to the raw value https://github.com/siyuan-note/siyuan/issues/14903

This commit is contained in:
Daniel 2025-05-28 17:03:56 +08:00
parent f1ed7ea50d
commit fdaf10477d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -541,6 +541,8 @@ func RenderTemplateCol(ial map[string]string, rowValues []*av.KeyValues, tplCont
} else {
dataModel[rowValue.Key.Name] = v.String(true)
}
dataModel[rowValue.Key.Name+"_raw"] = v // Database template fields support access to the raw value https://github.com/siyuan-note/siyuan/issues/14903
}
if err = tpl.Execute(buf, dataModel); err != nil {