Hi eightythree,
Thank you for your reply.
The function works, but it's sadly not what I'm trying to achieve. I'm building a "project-base" which is a foundation for all my other future projects. The problem is that I need $Themedir to link correctly to my themes folder (which is does not). I do have a <% base_tag %> in my Page.ss, but it doesn't work.
If I need to link to an image for example then I need to write it like this:
<img src="/project-base/$ThemeDir/img/test.jpg">
But the clients website might be called "Febis-Pizza" and therefore I have to correct every link in my theme to this:
<img src="/febis-pizza/$ThemeDir/img/test.jpg">
I just want it to be like this:
<img src="/$ThemeDir/img/test.jpg">
In the SilverStripe tutorial for beginners it works and I do not understand what I'm doing wrong:
http://www.silverstripe.org/learn/lessons/migrating-static-templates-into-your-theme
Thank you again