[TYPO3-mvc] RealURL with extBase
Rens Admiraal
renst3 at e-rank.nl
Thu Jan 21 13:51:46 CET 2010
On Thursday 21 January 2010 13:41:15 Franz Koch wrote:
> Hi,
>
> > But is writing a custom realurl hook no overkill?
>
> not necessarily. I also did this for a different project once where I
> needed special URL handling capabilities and it's actually no big deal
> at all.
>
> > Why are parameters in the url even necessary if they only contain the
> > default value?
>
> well yes, exbase knows about the default controller/action pair of each
> plugin instance, but as soon as you create a link to some other
> functionality, extbase doesn't know which method is the default one to
> use or for the given parameter combination - so you need to tell by
> adding the according controller/action parameters.
> And as this all depends on your own code, only you know about the inner
> workings of your extension and can manipulate the URLs in the way you
> like too.
I would have to test this, but I think I think the fluid uri.action viewhelper
does add the controller without checking it's the default controller yes/no.
So, even when I don't add the controller, it's still added to the url
>
> Of course extbase could itself hook into realUrl and provide some
> routing configuration options that will ease things up for you - but
> AFAIK this is not yet available, so you need to do that by your own (or
> provide a patch). And even if extbase is providing some config options
> for routing, the URLs will never look as good as doing it by hand for
> your very special usecase.
>
More information about the TYPO3-project-typo3v4mvc
mailing list