[TYPO3-english] Integrate RealUrl in my own extension

Jeppe Donslund jd at masters.dk
Thu Apr 22 13:01:45 CEST 2010


Den 22-04-2010 10:46, Dmitry Dulepov skrev:
> Hi!
>
> Jeppe Donslund wrote:
>> Does anyone know where to find som documentation for integrating RealUrl
>> in my own extension så that it could work like this:
>>
>> I have som entries in the DB that should be displayed one at a time on
>> my page.
>> It will be the same page displaying the entries just like SingleView in
>> tt_news.
>>
>> The entries have a title that I would like to show in the url.
>>
>> http://my.domain.dk/nc/pageTitle/titleFromEntry.html
>
> For Frontend, use typolink:
> http://dmitry-dulepov.com/article/linking_properly_in_your_typo3_code.html
> For Backend use pagepath extension.
>

If I do like this:

$pageId = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
"pages"); // Single page
$parameters = '&tx_mstfiskeplads_pi1[spot]=' . $sData["uid"];
$pagepath = tx_pagepath_api::getPagePath($pageId, $parameters);

I get an pagepath like this:
http://mydomain.dk/products/pagetitle.html?tx_mst_pi1%5Bspot%5D=2&cHash=1db1c2f3fa4d26e3992fa64e90ec177f.

But the was:
http://mydomain.dk/products/pagetitle/2.html
or
http://mydomain.dk/products/pagetitle/entryTitle.html

2 is the uid of the entry.

Jeppe D


More information about the TYPO3-english mailing list