【问题标题】:Silverstripe 4 themedir not working while take image from theme folder从主题文件夹中获取图像时 Silverstripe 4 主题目录不工作
【发布时间】:2017-11-28 05:41:35
【问题描述】:

函数$ThemeDir在使用img html标签时在silverstripe模板中不起作用

<img src="$ThemeDir/img/slides/2.jpg" alt="" /> 

【问题讨论】:

标签: silverstripe-4


【解决方案1】:

ThemeDir 在 SilverStripe 4 中被删除,但看起来很快就会被添加回来。

Source for removal

Source for restore

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-06
    • 2015-10-17
    • 1970-01-01
    • 1970-01-01
    • 2015-03-23
    相关资源
    最近更新 更多