How to use advanced options in your templates