I am experimenting making a journal template.
I went to Help > Support Assistant > Install Extras > Templates
and installed the “Journal Entry”.
By going to Data > New from Template > Open Templates Folder
, I found the file “Journal Entry.dtTemplate”, right-clicked it to “Show Package Contents”, opening the “English.lproj” folder and began to edit the “%longDate%.rtf” file.
I was able to edit the actual contents of the .rtf file all right, using TextEdit, but I also wanted to change the title of the file, from just the ‘long date’, to the ‘long date’ with the time also, so I renamed it “%longDate% - %time%.rtf”.
This worked fine, and produced:
Tuesday, 9 February 2021 - 11:01:56
However, I don’t want the comma to appear after the weekday. But I don’t know where or how these placeholders are defined, so I don’t know what alternative placeholder to put in the file title to delete the comma. In other words, what to replace the “%longDate%” part with, so that the file will be named:
Tuesday 9 February 2021 - 11:01:56
… instead of the one above with the comma.
I also wanted to make sure the time is formatted in a 24-hour format.
So all that would be the equivalent of the PHP:
date('l j F Y - H:i:s')
Is this possible? I may want to use other formats in the future, too.
Also, is it right that this template file is placed by default alone in the “Templates.noindex” folder? I’d expected it to be placed in the “Productivity” folder within the “Templates.noindex” folder.
Lastly, are such templates likely to be usable in any versions of DTTG, or are these always going to be meant purely for the desktop app?