ivoba-oxid/oxid-sitemap

此软件包最新版本(3.1.0)没有提供许可证信息。

生成站点地图

安装数: 3,736

依赖项: 0

推荐者: 0

安全性: 0

星标: 2

关注者: 3

分支: 6

开放性问题: 1

类型:oxideshop-module

3.1.0 2022-01-19 10:19 UTC

This package is auto-updated.

Last update: 2024-09-09 09:54:54 UTC


README

Build Status

要求

  • 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
  • 注意确保目标文件可以被web服务器写入
  • 创建一个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/>.