mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 01:05: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
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package pagemodels
|
||||
|
||||
const (
|
||||
P_KABINETT_NAME = "lesekabinett"
|
||||
P_BEITRAG_NAME = "beitrag"
|
||||
P_DATENSCHUTZ_NAME = "datenschutz"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user