feat(web-api): SEO follow-ups TV map, searchable robots, makeUrl - #715
Open
Ibochkarev wants to merge 1 commit into
Open
Ibochkarev wants to merge 1 commit into
Ibochkarev wants to merge 1 commit into
Conversation
Add ms3_public_seo_tv_map overlay, robots from searchable, canonical via makeUrl, and opt-in include_seo on list/tree. Document msOnGetPublicSeo; defer multi-size og.image (#703).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Описание
Follow-up к seo-блоку публичного каталога (#599 / #567): карта TV, robots из
searchable, canonical черезmakeUrl, opt-ininclude_seoна list/tree, документация событияmsOnGetPublicSeo.Тип изменений
Связанные Issues
Closes #703
Refs #567 #599
Как это было протестировано?
composer ci:php/composer test,npm run lint:ci,composer stan/ GitHub Actions CI)Конфигурация тестирования:
feat/issue-703-public-seo-followupsЧеклист
composer stan/ CI jobPHPStan)npm run lint:ciдля Vue)Дополнительные заметки
По пунктам #703
ms3_public_seo_tv_map(JSON), allowlist ключей SEO, overlay до события, повторный whitelist.searchableв публичном payload (bool).searchable=0→noindex,nofollow.$modx->makeUrl(..., 'full')с fallback наsite_url+uri.product/list,category/list,category/tree— только приinclude_seo=1(default 0). На get default по-прежнему 1. При category get +include_childrenchildren тоже получают seo.images[].thumbs. Менятьseo.og.imageсо строки на массив ломает контракт [Feature] Web API: seo-блок для product/category (headless SSR) #567.PublicSeoService+ регистрация в_build/elements/events.php(секция catalog/SEO). Страница docs.modx.pro нужно обновить отдельно (в этом репо markdown для событий не ведём).SOFT: batch prefetch TV значений по списку id — отдельный follow-up при нагрузке на list/tree.