定制 enlitepro/enlite-sitemap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

enlitepro/enlite-sitemap

Composer 安装命令:

composer require enlitepro/enlite-sitemap

包简介

The ZF2 module for generation static site map

README 文档

README

INSTALL

The recommended way to install is through composer.

{
    "require": {
        "enlitepro/enlite-sitemap": "1.0.*"
    }
}

USAGE

Add EnliteSitemap to your config/application.config.php to enable module.

Static urls you can added to the navigation in section "sitemap".

For dynamic urls you need:

  1. Add implementation EnliteSitemap\Navigation\DynamicPagesInterface to any service. This service must be available for get with help the service locator.
  2. Add a key of the service to
[
    'EnliteSitemap' => [
            'common' => [
                'dynamic_pages' => [
                    'YouService'
                ],
            ],
        ],
]

Configure

For example config:

[
    'EnliteSitemap' => [
            'common' => [
                // The name site map or site map index (if some files)
                'index_file' => 'sitemap.xml',
                // The name of site map. Use when a site map is some files
                'non_index_file' => 'sitemap%d.xml',
                'public_path' => 'public',
                'limit_url_in_file' => 50000,
                'dynamic_pages' => [],
            ],
            // URL for all links in site map
            'url' => [
                'host' => 'my.site.com',
                'port' => 80,
                'scheme' => 'http',
            ]
        ],
]

Notice

For create Zend\Navigation\Page\Mvc, we recommend use EnliteSitemap\Service\SitemapService::factoryMVCPage()

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固