Allow setting dmptemplate max pages settings in admin