Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Danielfdaf10477def
diff --git a/kernel/sql/av.go b/kernel/sql/av.go
index c4a203d341..8a230899b7 100644
--- a/kernel/sql/av.go
+++ b/kernel/sql/av.go
@@ -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 {