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
{{ craft.urlById.urlFor(entry) }}
- Copy the
urlbyid
directory into yourcraft/plugins
directory - Browse to Settings > Plugins in the Craft CP
- Click on the Install button next to Url By Id
- Browse to
http://yoursite.com/entries/find?id={id}
and be happy !
- 1.0.0
- Find entries by id with /entries/find?id={id}
- Add helper to generate url {{ craft.urlById.urlFor(entry) }}
- Initial release!
- Improve helper for templates -> {{ entry.urlById }} should work
- Allow categories
- Customize path in config
Feel free to join !