Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9636

Cannot visualize a content with web

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.2.0
    • None
    • None
    • None
    • 4.2 M11

      When web is there, the comments_3.3.xsl do this

          <xsl:template name="comment-like">
              <xsl:param name="content-id" />
          
              <xsl:variable name="pageId" select="ametys:pageId()" />
              <xsl:if test="ametys:pageHasRestrictedAccess($pageId)">
                  <xsl:call-template name="comment-like-form" >
                      <xsl:with-param name="like-title">plugin.cms:PLUGINS_CMS_CONTENT_COMMENTS_LIKE_BUTTON_TITLE</xsl:with-param>
                      <xsl:with-param name="like-button-tooltip">plugin.cms:PLUGINS_CMS_CONTENT_COMMENTS_LIKE_BUTTON_TOOLTIP</xsl:with-param>
                      <xsl:with-param name="unlike-title">plugin.cms:PLUGINS_CMS_CONTENT_COMMENTS_UNLIKE_BUTTON_TITLE</xsl:with-param>
                      <xsl:with-param name="unlike-button-tooltip">plugin.cms:PLUGINS_CMS_CONTENT_COMMENTS_UNLIKE_BUTTON_TOOLTIP</xsl:with-param>
                      <xsl:with-param name="content-id" select="$content-id" />
                  </xsl:call-template>
              </xsl:if>
          </xsl:template>
      

      but when watching a content, there is not pageId
      => I cannot see the content anymore due to a 500

            Unassigned Unassigned
            raphael Raphaƫl Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: