https://github.com/zauberware/urlbyid
CraftCMS Plugin - One route to find'em all
https://github.com/zauberware/urlbyid
browse craft-plugin craftcms php router
Last synced: over 1 year ago
JSON representation
CraftCMS Plugin - One route to find'em all
- Host: GitHub
- URL: https://github.com/zauberware/urlbyid
- Owner: zauberware
- License: mit
- Created: 2017-10-29T02:28:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T23:18:54.000Z (over 8 years ago)
- Last Synced: 2025-01-21T05:26:59.155Z (over 1 year ago)
- Topics: browse, craft-plugin, craftcms, php, router
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# One route to find'em all
This simple plugin gives you just one route /entries/find?id={id} to find entries and redirect to them. Currently only Entry models are supported.
You get also a helper functionsfor templates to generate the url from a given entry
```php
{{ craft.urlById.urlFor(entry) }}
```
## Installing
1. Copy the `urlbyid` directory into your `craft/plugins` directory
2. Browse to Settings > Plugins in the Craft CP
3. Click on the Install button next to Url By Id
4. Browse to `http://yoursite.com/entries/find?id={id}` and be happy !
## Changelog
* 1.0.0
* Find entries by id with /entries/find?id={id}
* Add helper to generate url {{ craft.urlById.urlFor(entry) }}
* Initial release!
## Feature Requests
* Improve helper for templates -> {{ entry.urlById }} should work
* Allow categories
* Customize path in config
Feel free to join !
