SilverStripe图像在前端不可见!只有登录的用户才能看到这些图像

问题描述 投票:0回答:1

银色条纹图像不会显示在前端,只有登录时图像才可见

在仪表板中,它必须使用文件权限选项,以形成任何人,但仍然是相同的问题。

任何帮助将不胜感激 !

谢谢!

silverstripe
1个回答
0
投票

似乎图像需要单独发布它们所引起的页面。如果你添加$ owns,它将导致图像在你发布页面本身时更新/发布,在我看来它默认应该是这样。

private static $has_one = [
    'TeaserImage'=>Image::Class
    //This is my image for the page.
];
private static $owns = [
    'TeaserImage'
    //Adding this will make sure the image is published with the page.
];
© www.soinside.com 2019 - 2024. All rights reserved.