library sculpin-sitemap-bundle
Sculpin sitemap bundle
nickpeirson/sculpin-sitemap-bundle
Sculpin sitemap bundle
- Friday, October 7, 2016
- by nickpeirson
- Repository
- 0 Watchers
- 3 Stars
- 87 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 3 Versions
- 5 % Grown
Sculpin Sitemap Generator Bundle
, (*1)
Sculpin bundle that adds a data provider for sitemap data., (*2)
The sitemap generator will iterate over all sculpin sources that aren't used internally by sculpin via a file reference. This is intended to prevent assets from being included., (*3)
Known limitations
- I'm not using any content types in my sculpin site, so this bundle is untested with content types. You never know, it may work out of the box, but it's untested so be warned.
- As mentioned above, only sources that sculpin doesn't internally use a file reference for will be included. If this skips anythng that you want to include in your sitemap the workaround is to manually add it to your sitemap template.
Installation
- Add the following to your
sculpin.json file:
{
"require": {
"nickpeirson/sculpin-sitemap-bundle": "~0.1.1"
}
}
- Run
sculpin update.
- Add the bundle to your kernel
app/SculpinKernel.php:
```php
{% for url in data.sitemap %}
{{ site.url }}{{ url.loc }}
{{ url.lastmod }}
{% if url.changefreq %}
{{ url.changefreq }}
{% endif %}
{% if url.priority %}
{{ url.priority }}
{% endif %}
{% endfor %}
, (*4)
Contributing
PRs greatfully recieved, (*5)
Roadmap
- Add configuration to allow adding fields from source data to the sitemap. This would allow for reuse of existing data rather than needing to be duplicated in the source's
sitemap data, e.g. title.
- Further to using existing source data, allow mapping from source data to
sitemap. This would allow for overriding sitemap fields with existing data, e.g. mapping page.canonical_url override url for entries in data.sitemap.
License
The MIT License (MIT). Please see License File for more information., (*6)
dev-master
9999999-dev
Sculpin sitemap bundle
Sources
Download
MIT
The Requires
The Development Requires
by
Nick Peirson
sitemap
sculpin
0.1.1
0.1.1.0
Sculpin sitemap bundle
Sources
Download
MIT
The Requires
The Development Requires
by
Nick Peirson
sitemap
sculpin
0.1
0.1.0.0
Sculpin sitemap bundle
Sources
Download
MIT
The Requires
The Development Requires
by
Nick Peirson
sitemap
sculpin