title: SIlverstripe check page name in .ss file
body: <p>I want to check – in the template .ss file – the page name or title in order to show a different image. I'd like to do something like that:</p>
  
  <pre><code>&lt;% if $SiteConfig.Title == 'video' %&gt; 
     &lt;img src="themes/blackcandy/images/image.jpg" /&gt; 
  &lt;% else if $SiteConfig.Title == 'bio' %&gt; 
     &lt;img src="themes/blackcandy/images/image1.jpg" /&gt; 
  ... 
  ...
  
  &lt;% end_if %&gt;
  </code></pre>
  
  <p>The code above of course doesn't work. How do I do it? Is there a more efficient way of doing it?</p>
  
  <p>Thanks a lot.<br>
  Mauro</p>