ivoba/oxid-sitemap

此包已被弃用且不再维护。作者建议使用 https://github.com/ivoba-oxid/oxid-sitemap 包。
此包最新版本(3.1.0)没有可用的许可证信息。

生成站点地图

安装: 50

依赖: 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-08-09 09:39:42 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
  • 确保目标文件可以被网络服务器写入
  • 创建一个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/>.