package seo import ( "git.golem15.com/golem15/sm-seo-plugin/classes" "git.golem15.com/golem15/sm-seo-plugin/controllers" "git.golem15.com/golem15/summercms/modules/backpack" "git.golem15.com/golem15/summercms/modules/pact" ) // FormFieldTypes registers the SEO field types (classes.FieldTypes): // seotext, mlseotext, seorobots, mlseorobots, seoimage and robotstxt. // Their element bundle loads on every admin page, so the SEO tab works on // other plugins' forms and the robots.txt tester element (E5) is defined // wherever its widget renders. func (p *Plugin) FormFieldTypes() []pact.FormFieldType { return classes.FieldTypes(func() *backpack.App { if p == nil { return nil } return p.app }, controllers.PermissionManage) } var _ pact.HasFormFieldTypes = (*Plugin)(nil)