Create directives for fields and items