Description
When there a widget template depends on another there is a break in the ability to override content. Consider, for example, the login widget which extends the base widget. Content provided by the base template or the widget definition is correctly used but content from the login template is not.
This is because the base template defines the token (e.g. content.primary) in its template_build.xml from either the base template or the widget definitions. Once defined the token is not overwritten in the login template.
We need to change the way properties are defined. The correct process (in this example) would be:
- copy all content files from base template to build folder
- copy all files from login template (overwriting any that already exist) to build folder
- copy all files from widget definition (overwriting any that already exist) to build folder
- define the properties by loading executing each of the appropriate targets in each template_build.xml
- build the widget using the content files in the build folder