[TYPO3-english] RealURL - new page type
Constantin Iliescu
titiiliescu at yahoo.com
Mon Sep 19 11:51:30 CEST 2011
Hello!
I'm trying to generate real urls with a new page type, but it just won't work.
ext_typoscript.txt:
sxajax = PAGE
sxajax.typeNum = 789
sxajax.10 < plugin.tx_sxmedialibrary_pi1
realurl_conf.php:
...
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array (
'ajax.html' => array (
'keyValues' => array (
'type' => 789,
),
),
...
'postVarSets' => array (
'videos' => array (
array(
'GETvar' => 'tx_sxmedialibrary_pi1[categoryUid]',
'lookUpTable' => array (
'table' => 'pages',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 99,
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
...
tx_extensie_pi1.php:
$params = array(
"returnLast" => "url",
"useCacheHash" => "1",
"parameter" => $GLOBALS['TSFE']->id.',789',
"additionalParams" => "&L=" . $GLOBALS['TSFE']->sys_language_uid . "&tx_sxmedialibrary_pi1[categoryUid]=" . $row['uid']
);
$link = $this->cObj->typoLink('', $params);
The generated link looks like this:/media-library/videos/category1.html
If I enter in my browser this link, /media-library/videos/category1/ajax.html the needed result is shown.
Could somebody guide me in solving this?
Thank you,
Constantin Iliescu
More information about the TYPO3-english
mailing list