Uploaded image for project: 'Front Edition'
  1. Front Edition
  2. FRONTEDIT-118

The "toggle mode" button should not depend on all the front-edition stack

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 1.15.0
    • 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.

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: