Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loveduckie/silverstripe-url-segment
A SilverStripe module for conveniently generating URL segments (slugs) for DataObjects.
https://github.com/loveduckie/silverstripe-url-segment
dataobject silverstripe silverstripe-5 silverstripe-module urlsegment
Last synced: 18 days ago
JSON representation
A SilverStripe module for conveniently generating URL segments (slugs) for DataObjects.
- Host: GitHub
- URL: https://github.com/loveduckie/silverstripe-url-segment
- Owner: LoveDuckie
- License: bsd-3-clause
- Created: 2024-11-17T10:07:04.000Z (about 1 month ago)
- Default Branch: 5
- Last Pushed: 2024-11-28T14:40:38.000Z (29 days ago)
- Last Synced: 2024-11-28T15:35:33.419Z (29 days ago)
- Topics: dataobject, silverstripe, silverstripe-5, silverstripe-module, urlsegment
- Language: PHP
- Homepage: https://lucshelton.com
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SilverStripe URL Segment
**Automatically generate and inject slugs or URL segments to your DataObjects.**
Unlike `SiteTree` objects, other `DataObject`s in SilverStripe do not automatically produce a "`URLSegment`". Generating a "`URLSegment`" can be beneficial for navigation purposes on your website, or for search-engine optimization.
This is a simple module that provides a `DataExtension` that can be appended to any `DataObject` that you have in your project. It will ensure that `URLSegment` is populated with a unique name (non-colliding).
It has the added benefit of optimizing discovery with search engine crawlers by having identifiable names and titles attributed with indexed objects.
## License
See [License](LICENSE.md)
## Installation
```sh
composer require loveduckie/silverstripe-url-segment
```## Documentation
- [Documentation readme](docs/en/README.md)