Page MenuHomePhabricator

Use fallback template as basis for new templates created for a domain
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):

Domain objects may have a createTemplate method to create new TranslationTemplate objects for that domain (instead of manually creating them with new TranslationTempalte()).

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

This may be particularly useful for the Web2Cit-Editor, as we may use the Domain's fallback template to create the new template in cases where a template definition has not been provided to the creator.

Alternatively, we may implement this in the add method of the templateConfiguration class.

Benefits (why should this be implemented?):

This would simplify creation of new templates for a domain, particularly for the Web2Cit-Editor