Is there a way to get the filename of a note which is generated during export but without path information?
In my current project I exported a bunch of notes into a folder A. Instead of recreating the same notes as files for each agent I just want to reference the files in folder A.
^file^ doesn’t work for my purpose as it gives me the filename plus the absolut path. I would need just the (system generated) file name.
HTMLExportFileName cannot be evaluated during export if not set manually (what I would like to avoid). Is there any other options?
Forgive me, I’m not quite sure what this means. Can you give examples of what you are getting and what you are expecting. Is this HTML export or some other format? I sense too, that while the question refers to the exported filename that actual issue maybe about cross-linking between the exported notes when the notes are exported from an agent rather than their original (outline) location.
It may be quicker just to make a small demo file with 3 or 4 exported notes that shows the problem.
I think what you are asking is likely do-able … once we’ve clarified the exact problem (lest we solve the wrong problem!).
Created links in “Agent1.html” refer to files in folder “Agent1” - what is correct and expected.
Created links in Agent2.html refer to files in folder “Agent2” - what is also correct according TBX logic … but what I would like to change by cross-linking to folder “Agent1”.
Your code snippet from the doc works pretty well and was exactly what I was looking for.
I am not sure if I understand you correctly but <p/> works fine for my purpose. As I need quite a lot of paragraphs in my templates I like to use the short tag instead using <p>some text</p>. When I export I see line breaks in Safari where I want to have them.