Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikenfin/yii-sitemapgenerator
Yii 1 console command for generating sitemap xml
https://github.com/ikenfin/yii-sitemapgenerator
Last synced: 4 days ago
JSON representation
Yii 1 console command for generating sitemap xml
- Host: GitHub
- URL: https://github.com/ikenfin/yii-sitemapgenerator
- Owner: ikenfin
- Created: 2015-08-31T09:24:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-20T18:58:45.000Z (almost 9 years ago)
- Last Synced: 2024-11-23T07:18:59.483Z (2 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SitemapGeneratorCommand
**Yii 1** console command to generate sitemaps.
### Install:
Copy SitemapGeneratorCommand.php into /protected/commands
### Usage:
```bash
./yiic sitemapgenerator [OPTIONS]
```### Customizing:
Command accepts these options for customizing:
Option | Default value | Description
:---:|:---:|:---
**PARAMS:** | | main options
| table | ``` 'url_alias' ``` | Database table with urls data |
| baseUrl | ``` '' ``` | Base url for urls (also applies to xml files, listed in xml index file) |
| saveAlias | ``` 'webroot.xml-sitemap' ``` | Yii alias that used to save xml files. If directory is not exist - **it will be created (0775 permissions)**
**FIELDS:** | | database data association
field[url] | ``` 'alias' ``` | database column that contains url
field[lastmod] | ``` NULL ``` | database column that contains last modification date**Example:**
```bash
./yiic sitemapgenerator table=urlAliases baseUrl=http://i.kenfin.ru saveAlias=webroot field[url]=urlAliases_alias
```