-
Improvement
-
Resolution: Unresolved
-
Minor
-
1.6.0
-
None
The template ametys-front-edition-insert-toggle-edition-mode-button in front-edition.xsl requires that the front-edition stack is loaded.
This class calls toggleEditionMode() in javascript which uses a server call to get the first available parent (from edition -> live, it can happen that we are on a page containing only drafts, and we have to go up untill we find a page available in live)
So the XSL should contains 2 parts :
1) live -> edition : no JS depedencies, just change the url (javascript coded in the xsl)
2) edition -> live : we are in edition mode, so the js is already available so we can do the normal way.