Hei devs,
By default, the ratings app uses JS to inject an HTML element right after
the #hierarchy element. This is a bit awkward since that element could be
(re)moved and the ratings element would not be present or follow the
position of the hierarchy (breadcrumb).
As a solution I propose implementing an extension point, namely
org.xwiki.platform.template.title.before which would go right before the
document title.
Due to the fact that in flamingo the "more actions" and "edit" buttons
are
now in the same place that the ratings are displayed brings us to a point
where we will have to integrate the ratings in this interface as well.
As a future improvement we could add more extension points and choose where
to display the ratings depending on the skin.
For example: before title for colibri and after the content menu (where the
"edit" and "more actions" buttons are) for flamingo.
This extension point would replace the JS inject thus making the code
cleaner.
Thanks,
Victor