Search

This is an interesting one and I'm not sure if it's by design or it just happens to be so: doubling a datasource's parameter output name as an URL parameter sets its value to the latter when the URL segment is present.

I'd assume that this is by design. The URL parameter should have precedence, shouldn't it?

It does, but the debug page still shows the value from the datasource.

I can not confirm this. Which Symphony version are you using? Can you explain your setup more detailed?

URL params defined in the page: /ds-para-meter/param2 with URL request of /y/param2

DS-A Output param: $ds-para-meter outputs a default value of x taken from a static section.
DS-B Filter param: {$ds-para-meter} becomes y if the URL section exists, otherwise sticks to x.

In the XML debug panel, the value of $ds-para-meter still shows it's DS-A value, not the URL segment value, while DS-B is actually using the URL segment value for filtering.

Using Symphony 2.2

I hope I am making sense...

That is almost precisely what I tried (also using Symphony 2.2). But in my test the value of $ds-para-meter changed to the URL segment value.

I hope that someone else can try this or dig into the Symphony core code to see what should actually happen.

To be double clear (provided I was clear before): the Datasource does get filtered by the URL param. Only the Debug view shows the old value.

Are you getting the same or are you saying that in your case the debug view shows you the updated value?

Only thing I can think of is that datasources are parsed in a certain order and Debug devkit grabs whatever comes first and cannot update it?

are you saying that in your case the debug view shows you the updated value?

Yes, indeed. Debug's Params view and the XML view both showed the updated value. I have to admit that I am lost here -- I have no idea why this can be different.

Maybe Rowan or Brendan can help.

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