-
Notifications
You must be signed in to change notification settings - Fork 126
Description
I'm investigating about "stackoverflow-style" URLs for a while.
Now it ocurred to me that maybe this could be a sponsorable feature for RealUrl?
The basic idea is quite simple: instead of the human readable part being used to look up the record, a record's uid is provided in the URL. The human readable part (slug) is just an addition (for readability). It can be changed or left away. For the lookup, only the uid is being used. If the slug doesn't correspond to the real slug, a redirect occurs.
Here's an example for this behaviour
Basic info:
https://stackoverflow.com/questions/39573477
Full current post URL
https://stackoverflow.com/questions/39573477/extbase-not-found-exception-redirect-to-404-default-page
Old title, mistypes ect
https://stackoverflow.com/questions/39573477/whatever
The config could be something like this: infixedPostVars
'lookUpTable' => array(
'table' => 'tx_myextension_domain_model_item',
'id_field' => 'uid',
'alias_field' => 'uid',
'additional_slug' => 'title', # <- that's imaginary
What do you think?
PS: Mathias Brodala is developing an extension that extends realURL for regular pages on https://github.com/pagemachine/typo3-flat-urls . I'm more concerned about "flat URLs" for extbase extensions than for pages, though.