thelia / better-seo-module
2.2.4
2024-07-22 09:36 UTC
Requires
- thelia/installer: ~1.1
README
在后台SEO标签中添加Noindex复选框和规范URL,管理网格链接
为了使此模块正常工作,您需要安装Sitemap
模块、AlternateHreflang
模块和CanonicalUrl
模块。
安装
手动安装
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块名称为BetterSeo。 - 在Thelia管理面板中激活它
Composer
将其添加到您的主Thelia composer.json文件中
composer require thelia/better-seo-module:~1.4.1
循环
[better_seo_loop]
输入参数
### Output arguments
示例
{loop type="better_seo_loop" name="exemple.loop" object_id="42" object_type="category" lang_id="1"}
要使用ld json,您需要将此部分添加到您的页面头部(产品、类别、品牌、文件夹、内容)
{loop name="loop-name" type="better_seo_loop" object_id=$object_id object_type=$object_type lang_id=$langId}
<script type="application/ld+json">
{$JSON_DATA nofilter}
</script>
{/loop}