Search

Ever since upgrading to Symphony 2.5.1 (from Symphony 2.3.3), my datasource parameters are outputting duplicates. Do you know what could be causing this?

<ds-news-home-featured-announcements.system-id>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
</ds-news-home-featured-announcements.system-id>
<ds-news-home-featured-announcements>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
    <item handle="6204">6204</item>
</ds-news-home-featured-announcements>

Do you use union datasource? I got that also with union datasource (https://github.com/brendo/uniondatasource/issues/42)

Do you use union datasource? I got that also with union datasource

Yes.

I got this as well, even without union datasource :o

I'm getting something very similar on 2.5.1. Not using Union Datasource.

e.g.

home
<ds-pages.page-type> home </ds-pages.page-type>

Guys, as part of maintaining backwards compatibility with older Symphony, if your datasource has one parameter selected, it will be output twice, once as $ds-handle, and once as $ds-handle.field-handle. This is because older versions of Symphony didn't support multiple parameters, so we've duplicate the old way and the new way. Eventually the old style will be removed, but to do so now will probably cause significant backlash.

There is no performance impact or functional impact. Your templates should prefer $ds-handle.field-handle notion, or even better, data/params/ds-handle.field-handle.

The Union Datasource appears to have a similar, but different bug where the same value is output multiple times within the parameter definition. Again, no functional impact, just visually looks strange. I don't have any immediate plans to rectify.

Thanks. Wasn't overly concerned but good to know the cause!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details