[TYPO3-mvc] What if RealURL could generate postVar keyword segment from the current controller?

Sy Moen josiah.moen at gmail.com
Wed Sep 21 03:04:08 CEST 2011


I have found that it would be really nice to be able to set the postVarSet
keyword based on the current controller. Basically extbase extensions work
by nature / design like multiple pi_base extensions anyway.

eg:
current => domain.com/ext_keyword/controller/action/name
            =>
domain.com/news/news/article/popstar-sings-at-major-social-cause-rally
            => domain.com/news/category/list/celeb-gossip

potential => domain.com/controller/action/name
              =>
domain.com/news/article/popstar-sings-at-major-social-cause-rally
              => domain.com/category/list/celeb-gossip

For instance, something like the code at the end [1], where the keyword for
the postVar segment could itself be retrieved from a valuemap of the
controllers (or whatever).

I guess the proper question is, how will url generation be handled in
FLOW3... and are there ideas there that we can "backport" into RealURL to
make the transition more peaceful. You know that url formation is going to
be a big issue in moving from 4.x to 5.x

ideas?

[1] 'postVarSets' => array(
            '_DEFAULT' => array(
                            'keyword' => array(
                                           // the next 6 lines are not legit
RealURL configuration...
                                            // just an idea of what could be
done to make RealURL work (better?) with extbase
                                            'GETvar' =>
'tx_extbase_extension[controller]',
                                            'valueMap' => array(
                                                            'news' =>
'News',
                                                            'news-category'
=> 'Category',
                                            ),
                                            array(
                                                            'GETvar' =>
'tx_extbase_extension[action]',
                                                            'valueMap' =>
array(

// ...
                                                            ),
                                            ),
                                            array(
                                                            'GETvar' =>
'tx_extbase_extension[trailSystem]',
                                                            'lookUpTable' =>
array(

// ...
                                                            ),
                                            ),


More information about the TYPO3-project-typo3v4mvc mailing list