adds template field to advanced settings. fixes #1952