You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2021. It is now read-only.
I ended up with a workaround. Basically I duplicated & modifed notes functionality in fabricator-assembler/index.js which you can find in node_modules. Then used it once in the first material item within the group/collection in the same way as you would use notes. You just need to prepare your include templates.
// get material front-matter, omit `notes`varlocalData=_.omit(fileMatter.data,['notes','collectionNotes']);// trim whitespace from material contentvarcontent=fileMatter.content.replace(/^(\s*(\r?\n|\r))+|(\s*(\r?\n|\r))+$/g,'');// capture meta data for the materialif(!isSubCollection){assembly.materials[collection].items[key]={filename: id,name: toTitleCase(id),notes: (fileMatter.data.notes) ? md.render(fileMatter.data.notes) : '',data: localData};}else{assembly.materials[parent].items[collection].items[key]={filename: id,name: toTitleCase(id.split('.')[1]),notes: (fileMatter.data.notes) ? md.render(fileMatter.data.notes) : '',collectionNotes: (fileMatter.data.collectionNotes) ? md.render(fileMatter.data.collectionNotes) : '',data: localData};}
Hey,
first let me thank you for this amazing framework. I do rly enjoy it:)
I would love to have possibility to show general notes for whole group of materials, e.g. notes for
lists
:Taken the logic behind the notes system (notes in front matter or in .md files with the same name), I would expect it should work something like this:
But actually I would like more this one:
Anyway, I didn't find a way to do it by myself. Any hint?
The text was updated successfully, but these errors were encountered: