feat(*): add image grids for album and associated media displays
This commit is contained in:
parent
9b4baad5fb
commit
36fbba761a
53 changed files with 1179 additions and 764 deletions
|
@ -4,7 +4,13 @@ SELECT
|
|||
p.title,
|
||||
p.permalink,
|
||||
p.description,
|
||||
CONCAT('/', df.filename_disk) AS open_graph_image,
|
||||
json_build_object(
|
||||
'open_graph_image', CASE
|
||||
WHEN df.filename_disk IS NOT NULL AND df.filename_disk != '' AND df.filename_disk != '/' THEN
|
||||
CONCAT('/', df.filename_disk)
|
||||
ELSE NULL
|
||||
END
|
||||
) AS metadata,
|
||||
p.updated,
|
||||
(
|
||||
SELECT
|
||||
|
@ -52,7 +58,8 @@ WHERE
|
|||
FROM
|
||||
pages p
|
||||
LEFT JOIN directus_files df ON p.open_graph_image = df.id
|
||||
CROSS JOIN optimized_globals globals
|
||||
GROUP BY
|
||||
p.id,
|
||||
df.filename_disk;
|
||||
|
||||
df.filename_disk,
|
||||
globals.cdn_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue