You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "SebbASF (JIRA)" <ji...@codehaus.org> on 2011/02/27 15:24:22 UTC

[jira] Created: (MSITE-558) Flexible site descriptor inheritance

Flexible site descriptor inheritance
------------------------------------

                 Key: MSITE-558
                 URL: http://jira.codehaus.org/browse/MSITE-558
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: New Feature
          Components: inheritance
            Reporter: SebbASF


Inheritance as currently implemented means that <head> elements (for example) are inherited,
Descendants can either accept the <head> or replace it completely with their own version.

There's no concept of merging such elements, though this would be quite useful on occasion.

My suggestion is to add an optional name (or id) to elements such as <head>, <footer> (when implemented), <custom> etc.

Elements with the same name would replace their parent, as at present.

Elements with different names would be merged.
Since ordering is important for some elements, the name would be used to define the order (i.e. alphabetical).

If not specified, the name would default to "main", which by happy co-incidence is roughly in the middle of the alphabet.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira