Hi all, I'm new to Silverstipe so be patient please if the question has a very easy answer :)
I want to check – in the template – the page name or title in order to show a different image. I'd like to do something like that:
<% if $SiteConfig.Title == 'video' %>
<img src="/themes/blackcandy/images/image.jpg" />
<% else if $SiteConfig.Title == 'bio' %>
<img src="/themes/blackcandy/images/image1.jpg" />
...
...
<% end_if %>
How do I do it? Is there a more efficient way of doing it?
Thanks a lot.
Mauro