All the work done so far was based on portal settings' dynamic includes. It was a great reference but their patterns have some issues:
- They add all dynamic includes to a map. This is problematic because the last activated dynamic include of a name will override the previous one, even if its ranking is lower. Also, if a dynamic include is removed from the map, there is no way to restore the previous one.
- So we cannot use the map pattern.
- An alternative is to inject dynamic includes into each portlet and return them as a list, instead of consulting a map..
- Also, our dynamic includes do a lot more than merely dynamically including. I propose renaming them to portlet tabs, which is more descriptive.