mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Lesekabinett & Startseite
This commit is contained in:
@@ -43,6 +43,12 @@ func (b *IndexBilder) SetBild(bild *filesystem.File) {
|
||||
b.Set(F_IMAGE, bild)
|
||||
}
|
||||
|
||||
func (r *IndexBilder) BildPath() string {
|
||||
img := r.Bild()
|
||||
ret := "/api/files/" + r.TableName() + "/" + r.Id + "/" + img
|
||||
return ret
|
||||
}
|
||||
|
||||
func (b *IndexBilder) Vorschau() string {
|
||||
return b.GetString(F_PREVIEW)
|
||||
}
|
||||
@@ -51,6 +57,12 @@ func (b *IndexBilder) SetVorschau(vorschau *filesystem.File) {
|
||||
b.Set(F_PREVIEW, vorschau)
|
||||
}
|
||||
|
||||
func (r *IndexBilder) VorschauPath() string {
|
||||
img := r.Vorschau()
|
||||
ret := "/api/files/" + r.TableName() + "/" + r.Id + "/" + img
|
||||
return ret
|
||||
}
|
||||
|
||||
type IndexTexte struct {
|
||||
core.BaseRecordProxy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user