Einzelbeitragsansicht

This commit is contained in:
Simon Martens
2025-02-28 00:00:37 +01:00
parent caaf86f90d
commit ebe2a68d35
9 changed files with 377 additions and 90 deletions

View File

@@ -58,6 +58,15 @@ func RContentsAgents_Contents(app core.App, id []any) ([]*RContentsAgents, error
)
}
func RContentsAgents_Content(app core.App, id string) ([]*RContentsAgents, error) {
return TableByFields[[]*RContentsAgents](
app,
RelationTableName(CONTENTS_TABLE, AGENTS_TABLE),
CONTENTS_TABLE,
id,
)
}
func REntriesSeries_Entries(app core.App, ids []any) ([]*REntriesSeries, error) {
return TableByFields[[]*REntriesSeries](
app,
@@ -139,6 +148,11 @@ func Contents_Entry(app core.App, id string) ([]*Content, error) {
)
}
func Contents_MusenalmID(app core.App, id string) (*Content, error) {
ret, err := TableByField[Content](app, CONTENTS_TABLE, MUSENALMID_FIELD, id)
return &ret, err
}
func Places_ID(app core.App, id string) (*Place, error) {
ret, err := TableByField[Place](app, PLACES_TABLE, ID_FIELD, id)
return &ret, err