Search

Hello everyone!

I'm looking a way to make this numeric calculation in data source filter: {$param} - 1

To be more specific, I'm using {$this-year} - 1. Its a common text field.

Any idea?

Thanks!

I am absolutely not sure about this one, but you could give ({$this-year}) - 1 a try...

I would have thought the maths needs to happen within the curly braces

{$this-year - 1}

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