Is there some code i can use for header images that if site is in english i use english header and when some other some other header image??
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
<% if Locale=en_US %>
<img src="/themes/blackcandy/images/headen.png" width="800" height="100" border="0"/>
<% else %>
<img src="/themes/blackcandy/images/head.png" width="800" height="100" border="0"/>
<% end_if %>
worked like charm in page.ss
This was huge help for me today. Thank you for posting this solution.
I'd go one step further...
<img src="/themes/blackcandy/images/head_{$Locale}.png" width="800" height="100" border="0"/>
then with other locales no code change is needed.