[TYPO3-english] RealURL - new page type

Constantin Iliescu titiiliescu at yahoo.com
Mon Sep 19 14:57:00 CEST 2011


The problem was from Powermail extension, which sets this:

[code]    $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'][] = array ( // add complete type array
            'GETvar' => 'type',
            'valueMap' => array (
                'validation' => '3131'
            ),
            'noMatch' => 'bypass'
        );[/code]

I've selected "Deactivate config for Realurl" in backend and now it works.

 
Constantin Iliescu


________________________________
From: Constantin Iliescu <titiiliescu at yahoo.com>
To: "typo3-english at lists.typo3.org" <typo3-english at lists.typo3.org>
Sent: Monday, September 19, 2011 12:51 PM
Subject: [TYPO3-english] RealURL - new page type

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
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list