Uploaded image for project: 'Skin Intranet'
  1. Skin Intranet
  2. SKININTRA-514

When front-editing is enabled, do not display visit statistics

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.6, 2.2.0
    • None
    • None
    • None
    • 4.9.0 M9
    • Oui

      Page visit statistics should not be visible when in "front-edit" mode because the statistics are different from those in "normal" mode.
      Therefore, they must be hidden.

      In

      <xsl:call-template name="matomo-stats"/>
      

      The test is

      <xsl:if test="ametys:renderingContext() = 'front' and normalize-space($piwikId) != '' and normalize-space($piwikUrl) != '' and $statsEnabled = 'true'">
      

      It is necessary to add

      not(ametys:isFrontEdition())
      

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: