nikos06/ez-sitemap-bundle
Composer 安装命令:
composer require nikos06/ez-sitemap-bundle
包简介
Sitemap Generation bundle for eZ Publish 5.0+
README 文档
README
This bundle generates a dynamic sitemap based on your ezpublish stored content. It has two options, a route which generates content when a user visit, or an ezpublish/console command to manually generate the sitemap.xml (e.g. with a cron job). If you are using a front cache like varnish, the first option should work well. Otherwise, the scheduled task may be a better option.
This bundle does not support advanced options like custom routes or multiple sites. It should be considered unstable and alpha-quality, and configuration options may change and break things.
Installation
use composer to require the latest package from packagist. Full release versions, e.g. from "0.0.1" to "1.0.0" will almost certainly break your configuration and your site.
Configuration
For 1.x releases, the following configuration options are used in your ezpublish.yml or config.yml
blend_ez_sitemap: allowed_sections: - 1 - public allowed_content_types: - text_page - folder main_url: http://example.org
allowed_sections is a list of either ezpublish section Ids or section names. To not limit by section, use a an empty array, e.g. []
allowed_content_types is a list of content_type_identifiers. Set to [] to not limit content types.
main_url is the protocol + domain for the base domain for the sitemap.
If you encounter an error about user not having access to 'view' 'section', your user (probably anonymous) does not have permission to get a list of sessions. You can either grant this permission, or use the section IDs instead of names in the allowed_sections.
Running the command
To run the command from your console:
php ezpublish/console blend:ez-sitemap:generate
This will add the sitemap file to the default location, 'web/sitemap.xml'
nikos06/ez-sitemap-bundle 适用场景与选型建议
nikos06/ez-sitemap-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nikos06/ez-sitemap-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nikos06/ez-sitemap-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2024-03-15