Issue Type: New Feature New Feature
Assignee: Tobias Mattsson
Created: 31/Jan/13 10:15 AM
Description:

Its common that many templates in a project have the same set of areas and it would be very useful if you could define them only once. Taking advantage of the class hierarchy is one way of doing this, just like blossom dialogs.

For example:

public abstract class Superclass {
	@Controller
	@Area("headerArea")
	public static class HeaderArea {
		@RequestMapping("/headerArea")
		public String render() {
			return "areas/cpHeaderArea";
		}
	}
}

@Controller
@Template(...)
public class InheritedClass extends Superclass {
	//...
}

Implementation wise this would mean inspecting the class hierarchy in:
info.magnolia.module.blossom.template.DetectedHandlersMetaData#getAreasByEnclosingClass

Which is called from:
info.magnolia.module.blossom.template.TemplateDefinitionBuilder#buildAreaDefinitionsForTemplate

Fix Versions: 2.0.2
Project: Magnolia Blossom Module
Priority: Neutral Neutral
Reporter: Tobias Mattsson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to