Generate Sample Display Template

Does this command pay attention to the active display mode? Would it be a more coherent experience if it output the template based on the active display?

You raise an interesting point. In fact, the sample display template does not reflect the active display mode. I can see that it would be nice if it did, but the intent of the sample display template is just to give the user a starting point. Replicating the display mode (which has become pretty complex over the years) would be just too hard to build and maintain using a parallel construction technique. The display mode you see within the app is just built using Swift. It doesn’t use the Notenik Merge Template “language” at all.

That being said, it might be possible to at least supply a more tailored Merge Template as part of a Starter Pack.

Let me work on this a bit and see what I can come up with.

Thanks for the question!

Well, I did just work on this a bit and… it gets pretty complicated pretty quickly, considering different layouts for title slides, plus the variations in image layout.

Is there some effect in particular you’re trying to modify? Just wondering if there’s another way to get what you’re looking for.

I wanted to modify the template for a presentation. I’m presenting at a conference in May. We have been issued templates for Keynote, which is essentially a footer with the company logo and the conference date. So not especially difficult to replicate.

I have output the sample template previously so I should have known that it was a pro-forma document. However, I thought that as Notenik was presenting me a webpage that looked “just so” it must have a process that says something like, “merge the current page with template X”. I had hoped that it would be simple to say, “instead of merging content, output the display instructions with template X”.

This may be a good opportunity to introduce a “hack” in Notenik that makes it easy to view the source code of the active Display mode in Notenik for comparing with your own styling/templating.

Activate “Enable Local Image References” in your Collection Settings (Command-;).
This should generate a temp_display.html file in the collection directory that replicates the active Display mode. It shows the most recently displayed note according to the selected Display mode.

You can then use a text editor or your browser’s web inspector to look through the source to get a feel for where your desired changes would go according to the default layout that corresponds to the Display mode.

If I’m understanding the objective correctly then this should help. It’s something I frequently rely on for my own customizations.

1 Like