ivoba / oxid-sitemap
3.1.0
2022-01-19 10:19 UTC
Requires
- php: >=7.1
- oxid-esales/oxideshop-ce: ^v6.5.4
Requires (Dev)
- phpunit/phpunit: ^6
- squizlabs/php_codesniffer: ^3.5
README
需求
- Oxid eShop >= 6.2
- PHP >= 7.1
安装
通过composer安装
composer require ivoba-oxid/oxid-sitemap
激活插件
vendor/bin/oe-console oe:module:activate ivoba_sitemap
用法
推荐使用控制台命令的方式。
控制台
运行
vendor/bin/oe-console ivoba-oxid:sitemap:generate
浏览器
安装后
- 将 'sitemap_xml.php' 从 /vendor/ivoba-oxid/oxid-sitemap/copy_this 复制到 /source/ 目录
cp vendor/ivoba-oxid/oxid-sitemap/copy_this/sitemap_xml.php source/sitemap_xml.php
- 确保目标文件可以被网络服务器写入
- 创建一个cronjob调用 http://yourshop.biz/sitemap_xml.php
站点地图生成可以通过覆盖模块中的服务定义或项目的services.yaml中的服务定义进行调整。
待办事项
- 通过浏览器生成受密码保护的生成页面
- 压缩站点地图
- 提供分割站点地图的选项,创建 sitemap_split_xml.php
致谢
基于 https://github.com/OXIDprojects/google_sitemap
许可证
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://gnu.ac.cn/licenses/>.