[TYPO3-mvc] How to use realurl in an extbase extension?
Christian Essl
essl at incert.at
Tue Jun 7 11:34:15 CEST 2011
As far as I understand all this hook is doing, is adding an autoconfiguration? Configuration alone wouldn't be a problem. - I already set up a static configuration.
For example this:
'fixedPostVars' => array(
'_DEFAULT' => array (
array(
'GETvar' => 'tx_myext_pi1[controller]',
'valueMap' => array(
'profile' => 'Profile',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_myext_pi1[action]',
'valueMap' => array(
'list' => 'list',
'new' => 'new',
'create' => 'create',
'edit' => 'edit',
'update' => 'update',
'delete' => 'delete',
),
'noMatch' => 'bypass',
),
),
),
So I am already able to open the pages with a speakable url in the browser like "profile/new/" but that alone is useless as long as the internally generated urls (f.link etc.)do not get rewritten in this way. :(
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Christian Essl
Gesendet: Dienstag, 07. Juni 2011 11:04
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] How to use realurl in an extbase extension?
Thanks!
I tried to implement it, but somehow the encodeSpURL_postProc ()-function inside the hook is never called. Hard to figure out the problem.
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Michael Knoll
Gesendet: Dienstag, 07. Juni 2011 09:32
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] How to use realurl in an extbase extension?
Hi Christian,
we did something like this for our gallery extension. Currently you will only find it in the development branch on github, but perhaps it will help you:
https://github.com/michaelknoll/yag/tree/develop
You find the hook class in Classes / Hooks
Unfortunately I didn't write this stuff and can't tell you how to include this hook - I guess, the docu on realurl will help you.
The only line I can find the hook is in ext_autoload.php
Hope this helps you a little
Greets from San Francisco!
Mimi
Am 07.06.11 08:35, schrieb Christian Essl:
> Hello
>
> How do I get TYPO3 to use rewritten urls (realurl) in my extbase extension? I already set up some postVarSets and fixedPostVars, but that's not enough. How does realurl know how the urls in a extension need to be rewritten?
>
> I looked up the realurl documentation and the pages in the wiki just to find out that there is mostly integrator-relevant information, but no information on how to use realurl in a self-written extension. Also I found some discussions in the TYPO3-mvc list about realurl usage in extbase but they all proceed on the assumption that it's already working.
>
> Did I overlook something?
>
> Regards,
> Christian
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list