[TYPO3-dev] realurl removes &type parameter from my url link
Steffen Ritter
info at rs-websystems.de
Mon May 5 21:43:03 CEST 2008
Hello,
i had the same Problem, using TS typolink functions.
I solved it as followed:
Since realurl only recognizes endings like print.html to render es
configured type, but not creating print.html if you ask for type=98 you
have to cheat.
configure a synonym such as textversion with type=xy
'fileName' => array (
'index' => array(
'textversion.html' => array(
'keyValues' => array(
'type' => 'xy',
'specialMarker' => '1'
)
)
,'index.html' => array(
'keyValues' => array(
'type' => '0',
)
)
... furthermore you have to add a "specialMarker" at the get Vars (VERY
IMPORTANT!!!! IT MUST BE THE LAST ENTRY OF THE postVars Array)
,'show-in' => array (
array(
'GETvar' => 'specialMarker',
'valueMap' => array(
'textversion' => '1'
),
'noMatch' => 'bypass'
)
)
Afterwards, you can create links, not adding type as parameter but
specialMarker=1 ...
result will be a link as my mypage/show-in/textversion.html
textversion.html will be translated in type=xy show-in saves
get-parameter textversion... which you may covre with further conditions.
kind regards
Steffen
Cyrill Helg schrieb:
> Hello
>
> I have some weird behaviour here in my extension. As soon as I activate
> realurl the type parameter is missing in my url. I generate the link with the
> following code:
>
> $this->base->pi_getPageLink($GLOBALS['TSFE']->id,'', array( 'type' => 769,
> $this->base->prefixId.'[folder]' => $this->base->_GP['folder'],
>
> $this->base->prefixId.'[action]' => 'create_folder',
>
> $this->base->prefixId.'[popup]' => 1, 'height' => 300, 'width' =>
> 300, 'keepThis' => 'true', 'TB_iframe' => 'true' ) ));
>
> And here my simple realurl config:
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array('_DEFAULT' =>
> array('pagePath' =>
> array('type' => 'user',
> 'userFunc'
> =>'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
> 'rootpage_id' => 1
> ),
> 'init' => array (
> 'enableCHashCache' => '1',
> 'appendMissingSlash' => 'ifNotFile'
> ),
> 'postVarSets' => array(
> '_DEFAULT' => array (
> 'folder' => array(
> array(
> 'GETvar' => 'tx_fileexplorer_pi1[folder]',
> ),
> ),
> 'view' => array(
> array(
> 'GETvar' => 'tx_fileexplorer_pi1[view]',
> ),
> ),
> 'article' => array(
> array(
> 'GETvar' => 'tx_ttnews[tt_news]',
> ),
> array(
> 'GETvar' => 'tx_ttnews[backPid]',
> ),
> ),
> 'category' => array(
> array(
> 'GETvar' => 'tx_ttnews[cat]',
> ),
> ),
> 'neste' => array(
> array(
> 'GETvar' => 'tx_ttnews[pointer]',
> ),
> ),
> )
> ),
> ),
> );
>
> Thanks for any help.
>
> cyrill
More information about the TYPO3-dev
mailing list