Uploaded image for project: 'Syndication'
  1. Syndication
  2. SYN-30

The title of the RSS feed entered in the service is not used in the display

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.0, 2.0.0
    • 1.6.0
    • None

      I entered a title for each of my RSS feed and this title is not available in the view of XML (voir screenshot).
      The entered title is "Vie publique" the title used (in XML) that is returned by the RSS feed.

        1. RSS.png
          41 kB
          Laurence Perier

          [SYN-30] The title of the RSS feed entered in the service is not used in the display

          A non-empty personalized title in now used instead of feeds' title in default views of service

          <xsl:template name="syndication-title">
                  <h2 class="rss-title">
                      <xsl:choose>
                          <xsl:when test="/rssFeeds/feed-conf[@feedUrl = current()/@feedUrl]/@feedName != ''"><xsl:value-of select="/rssFeeds/feed-conf[@feedUrl = current()/@feedUrl]/@feedName"/></xsl:when>
                          <xsl:otherwise><xsl:value-of select="@title"/></xsl:otherwise>
                      </xsl:choose>
                  </h2>
          </xsl:template>
          

          Laurence Aumeunier added a comment - A non-empty personalized title in now used instead of feeds' title in default views of service < xsl:template name= "syndication-title" > <h2 class= "rss-title" > < xsl:choose > < xsl:when test= "/rssFeeds/feed-conf[@feedUrl = current()/@feedUrl]/@feedName != ''" > < xsl:value-of select= "/rssFeeds/feed-conf[@feedUrl = current()/@feedUrl]/@feedName" /> </ xsl:when > < xsl:otherwise > < xsl:value-of select= "@title" /> </ xsl:otherwise > </ xsl:choose > </h2> </ xsl:template >

          Laurence Aumeunier added a comment - - edited

          The title is part of the feed configuration. It is already saxed in <feed-config> tag:

          <rssFeeds showForm="false" nbmax="0" nbMaxUser="0" zoneItemId="zoneItem://4de113c7-26cd-4567-877c-f7496e158132" nbFeedService="2">
            <feed isSelected="false" isCustom="false" feedUrl="http://rss.lemonde.fr/c/205/f/3050/index.rss" description="Le Monde.fr - 1er site d'information." title="Le Monde.fr - Actualité à la Une">
                [...]
            </feed>
            <feed isSelected="false" isCustom="false" feedUrl="http://www.lepoint.fr/24h-infos/rss.xml" description="Actualité de la rubrique En continu" title="Le Point - En continu">
                [...]
            </feed>
            <feed-conf isSelected="false" isCustom="false" feedName="Mon titre 1" feedUrl="http://rss.lemonde.fr/c/205/f/3050/index.rss"></feed-conf>
            <feed-conf isSelected="false" isCustom="false" feedName="Mon titre 2" feedUrl="http://www.lepoint.fr/24h-infos/rss.xml"></feed-conf>
          </rssFeeds>
          

          but even if available, the information is not used in default XSLT

          Laurence Aumeunier added a comment - - edited The title is part of the feed configuration. It is already saxed in <feed-config> tag: <rssFeeds showForm= "false" nbmax= "0" nbMaxUser= "0" zoneItemId= "zoneItem://4de113c7-26cd-4567-877c-f7496e158132" nbFeedService= "2" > <feed isSelected= "false" isCustom= "false" feedUrl= "http://rss.lemonde.fr/c/205/f/3050/index.rss" description= "Le Monde.fr - 1er site d'information." title= "Le Monde.fr - Actualité à la Une" > [...] </feed> <feed isSelected= "false" isCustom= "false" feedUrl= "http://www.lepoint.fr/24h-infos/rss.xml" description= "Actualité de la rubrique En continu" title= "Le Point - En continu" > [...] </feed> <feed-conf isSelected= "false" isCustom= "false" feedName= "Mon titre 1" feedUrl= "http://rss.lemonde.fr/c/205/f/3050/index.rss" > </feed-conf> <feed-conf isSelected= "false" isCustom= "false" feedName= "Mon titre 2" feedUrl= "http://www.lepoint.fr/24h-infos/rss.xml" > </feed-conf> </rssFeeds> but even if available, the information is not used in default XSLT

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

              Created:
              Updated:
              Resolved: