jorisnoo/craft-seo-preview
Composer 安装命令:
composer require jorisnoo/craft-seo-preview
包简介
SEO preview targets for Craft CMS elements
README 文档
README
A Craft CMS plugin that adds an SEO preview target to element live previews. See how your entries will look in Google search results while editing.
Requirements
- PHP 8.2+
- Craft CMS 5.0+
Installation
composer require jorisnoo/craft-seo-preview
Then install the plugin from the Craft control panel or by running:
php craft plugin/install seo-preview
How it works
The plugin adds an "SEO Preview" tab to the live preview of any element that has a URL. It renders a Google-style search result preview using the element's meta tags (title, description, og:image, etc.), so you can see how the page will appear in search results before publishing.
The preview reads the actual meta tags from your templates, so it works with whatever SEO setup you already have (SEOmatic, custom meta tags, etc.).
Template requirements
Your site templates need to include a partial at _helpers/seo.twig that outputs the relevant meta tags for the given entry. The plugin passes the entry to this partial and uses the rendered meta tags to build the preview.
License
MIT
统计信息
- 总下载量: 422
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-26