Reputation: 109
What I like about TYPO3: 1000 ways lead to Rome.
Here is my attempt which on TYPO3 7.6 and tx_news 5.2 offers nice Url's in Detail view: http://pastebin.com/BzgUpsCH
How can I shorten the url from "detail/"
Thanks for your hints.
Upvotes: 1
Views: 381
Reputation: 1264
First "way to rome":
plugin.tx_news {
settings {
link {
skipControllerAndAction = 1
}
}
}
Second:
[globalVar = GP:tx_news_pi1|news > 0]
config.defaultGetVars {
tx_news_pi1 {
controller=News
action=detail
}
}
[global]
Documentation:
Upvotes: 3
Reputation: 3207
Another way to short you URL:
use Below encoded and decoded function in realURLconfiguration file:
'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'),
Upvotes: 0