String - Contains

This can be be used with check boxes, radio boxes and drop downs. (These items tend to add a comma to the content).

The example below demonstrates how you can grab the URL of the page and then see if it contains a certain item.

  1. #if ($url.toLowerCase().contains('www.url.co.uk/jobs/'))  
  2.       You are looking at the jobs page!  
  3. #end  
comments powered by Disqus