Search

I’m having trouble getting this statement that works like this,

{/data/node/[@handle = 'string']/entry}

To work with string coming from an xpath or a url variable

{/data/node/[@handle = /data/node/node/@handle]/entry}

or

{/data/node/[@handle = $urlvariable]/entry}

Im using this in email filters recipients field if that matters.

Im sure its a syntax problem I cant seem to figure it out.

Note: I’ve edited your post above with some formatting.

The correct syntax should be:

{/data/node[@handle = /data/node/node/@handle]/entry}

or

{/data/node[@handle = $urlvariable]/entry}

oh yea i messed up the / in my example but in my actual code its like that and still wont work. could it be a limitation of the emailfilter extension?

hmm turns out i forgot i changed a field type so node/item wasnt needed only node was needed, dont i feel silly.

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