On 3 Dec 2014 at 18:05:47, Victor Rachieru
(victor.rachieru@xwiki.com(mailto:victor.rachieru@xwiki.com)) wrote:
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.
Actually the goal of an extension point is to be able to auto-adapt to the skin! It’s the
skin that says where the extension point is located! This allows code using extension
points to work in all skins without a change.
Thanks
-Vincent
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