-
|
Not sure what's happening, it works from dev console. And JS does execute on templater snippets I added a console.log and it does work. I have been away from obsidian and trying to get back to it for notes. I have another vault with ICS 1.4 which the below works fine, I tried comparing settings but can't find the difference. Any idea what I am doing wrong? <%*
var events = await app.plugins.getPlugin('ics').getEvents(moment(tp.file.title,'YYYY-MM-DD'));
events.sort((a,b) => a.utime - b.utime).forEach((e) => {
const calendar = e.icsName.replace(" ","-");
const callUrl = e.callUrl? ` [${e.callType}](${e.callUrl})` : '';
const location = e.location? ` 📍 *(${e.location})*` : '';
tR+=`- [ ] ${e.time}-${e.endTime} **${e.summary}**${location}${callUrl} #${calendar}\n`
})
%> |
Beta Was this translation helpful? Give feedback.
Answered by
TheFern2
Feb 28, 2025
Replies: 1 comment
-
|
Nvm I am an idiot lol, I changed tp.file.title on the new vault. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheFern2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nvm I am an idiot lol, I changed tp.file.title on the new vault.