mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
add page meta to the image index
This commit is contained in:
parent
250e20bbcd
commit
f980b6318c
@ -26,7 +26,10 @@ source hostImage : common
|
|||||||
SELECT hostImage.hostImageId, hostImage.rank, hostImage.uri, host.name, \
|
SELECT hostImage.hostImageId, hostImage.rank, hostImage.uri, host.name, \
|
||||||
(SELECT GROUP_CONCAT(CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title)) \
|
(SELECT GROUP_CONCAT(CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title)) \
|
||||||
FROM hostImageDescription \
|
FROM hostImageDescription \
|
||||||
WHERE hostImageDescription.hostImageId = hostImage.hostImageId) AS imageDescription \
|
WHERE hostImageDescription.hostImageId = hostImage.hostImageId) AS imageDescription, \
|
||||||
|
(SELECT GROUP_CONCAT(CONCAT_WS(' ', hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords)) \
|
||||||
|
FROM hostPage \
|
||||||
|
WHERE hostPage.hostPageId IN (SELECT hostImageToHostPage.hostPageId FROM hostImageToHostPage WHERE hostImageToHostPage.hostImageId = hostImage.hostImageId)) AS pageDescription \
|
||||||
FROM hostImage \
|
FROM hostImage \
|
||||||
JOIN host ON (host.hostId = hostImage.hostId) \
|
JOIN host ON (host.hostId = hostImage.hostId) \
|
||||||
WHERE host.status = '1' AND hostImage.httpCode = 200
|
WHERE host.status = '1' AND hostImage.httpCode = 200
|
||||||
|
Loading…
Reference in New Issue
Block a user