How do I implement importing a header value into a template? #760
-
I have a question for acquiring header value in the template file. For example, here is my ExportMDFileHeaderV2 ${{
let header = {};
header.tags = noteItem.getTags().map((_t) => _t.tag);
header.institutions = noteItem.getTags().map((_t) => _t.tag);
return JSON.stringify(header);
}}$ And I will add the tags & institutions value in my obsidian synced file. I'm confused because I'm not familiar with this language. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
What it the |
Beta Was this translation helpful? Give feedback.
-
The intent of the question is <ul>
<li>📑<b>Publication: </b>${topItem.getField("publication")}</li>
<li>🗓️<b>Year: </b>${topItem.getField("year")}</li>
</ul> If I wrote this [item] Example Template file, |
Beta Was this translation helpful? Give feedback.
-
Please see #527. It's a planned new feature. I'll close this QA as duplicated |
Beta Was this translation helpful? Give feedback.
BN template generates note content, while yaml header is only for export to Markdown. I still do not understand what you want. Please answer directly:
(where to show?)
(do you mean you want to use these yaml header parameters in markdown, or do you want to update the item metadata in Zotero from your modifications in markdown through the syncing pipeline?).