FEATURE: add favicon for subsite.
MINOR: use the cmsThumbnail to present in favicon's upload field.
This commit is contained in:
parent
47ab3e002a
commit
7ec537f976
|
@ -7,7 +7,7 @@ class FaviconImage extends Image{
|
|||
}
|
||||
|
||||
public function CMSThumbnail() {
|
||||
return $this;
|
||||
return $this->getFormattedImage('CMSThumbnail');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ class Subsite extends DataObject implements PermissionProvider {
|
|||
// new TextField('RedirectURL', 'Redirect to URL', $this->RedirectURL),
|
||||
new CheckboxField('DefaultSite', 'Default site', $this->DefaultSite),
|
||||
new CheckboxField('IsPublic', 'Enable public access', $this->IsPublic),
|
||||
new ImageField('Favicon', 'Bookmark Icon')
|
||||
new ImageField('Favicon', 'Bookmark Icon', $this->ID)
|
||||
)
|
||||
),
|
||||
new HiddenField('ID', '', $this->ID),
|
||||
|
|
Loading…
Reference in New Issue