Message of the day:
SS 4.4.0 and 4.4.1 are out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4/docs/en/04_Changelogs/4.4.0.md
SilverStripe 4 related information and questions.
but frontend theme is set in the config, so you should be able to grab it from there
I normally hardcode this stuff in my projects, e.g. "themes/foo/images/foto.png"
does it really have to be dynamic?
@wmk ahhh, thanks.. and how do I get the current <theme-name> ?
oh yeah email templates
you should use ResourceURL instead @magda, see http://www.silverstrip.es/blog/ss4-replacement-for-good-ol-themedir-or-loading-themed-resources/ Also make sure you include an absolute URL to the image, if you don't send the image as attachment
if you are accessing themes from the CMS, you need to add that theme to
Hi there, I have an email template and want to add an image of my themes-folder.
Unfortunately the link
$ThemeDir/images/header.png is not working because the $ThemeDir links to
When I use $ThemeDir inside my ThemesFolder, the link is correct
Am I missing something? In some other Projects it's working fine