Jack Baty Daily

Daily notes from Jack about everything

Movie list uses a custom template

The Movies page was using an export template displaying each note's $DisplayName. I wanted the listing to be a table instead, so I created a new template "movie item". The problem here was that I didn't also want to create a new parent template. My solution was to add a conditional to the parent template so that it chooses the list template based on the first child's prototype. This makes some assumptions an I'm not sure it's ideal, but it works.

So: if($Prototype(child[0])=="pMovie")