[TYPO3-english] Realurl and the _DEFAULT array - how to avoid this deprecated key ?
Christoph Stadler
christophe at stadler.com
Fri Jan 14 14:49:25 CET 2011
Hello,
i was trying to find a solution to my problem with realurl and the realty extension and came across this entry in the documentation:
_DEFAULT
(Deprecated) Configuration of default Speaking URL coding if no matches
was found for the specific HOST name.
Warning! This is a legacy feature. The use of this option is highly
discouraged because it leads to hard to detect errors with speaking
URLs, wrong page id resolution, etc. Users are strongly recommended not
to use _DEFAULT with multidomain web sites. This will not work correctly
and be removed in future versions completely.
So i'm wondering how it' supposed to be done to avoid this and also how i should configure the extension for its FE-editor to work. I'm not very good with realUrl, i am using a default configuration for this extension provided by a user, the realUrl autoconfig does not work with this extension. I am having trouble with the extensions front end editor which gives me an error when saving records.
Error!
Reason: Multiple pages exist for path "": 2, 3, 6, 7, 22, 30, 31,
32, 33, 34, 35, 29, 24, 25, 26, 27, 28, 37, 39, 40
The Url it gets redirected to after the save displays the domain
root path twice:
*http://mydomain.com/http://mydomain.com/*no_cache/editor/mycity/testrecord.html
With reaUrl switched off everything works correctly so i'm sure it's
ot a problem with my realty install.
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// REALTY MANAGER
'hamburg' => array(
array(
'GETvar' => 'tx_realty_pi1[showUid]' ,
'lookUpTable' => array(
'table' => 'tx_realty_objects',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
)
),
),
),
'browse' => array(
array(
'GETvar' =>
'tx_realty_pi1[pointer]',
'valueMap' => array(
'Seite-1' => '0',
'Seite-2' => '1',
'Seite-3' => '2',
'Seite-4' => '3',
'Seite-5' => '4',
'Seite-6' => '5',
'Seite-7' => '6',
'Seite-8' => '7',
'Seite-9' => '8',
'Seite-10' => '9',
'Seite-11' => '10',
'Seite-12' => '11',
'Seite-13' => '12',
'Seite-14' => '13',
'Seite-15' => '14',
'Seite-16' => '15',
'Seite-17' => '16',
'Seite-18' => '17',
'Seite-19' => '18',
'Seite-20' => '19',
'Seite-21' => '20',
'Seite-22' => '21',
'Seite-23' => '22',
'Seite-24' => '23',
'Seite-25' => '24',
'Seite-26' => '25',
'Seite-27' => '26',
'Seite-28' => '27',
'Seite-29' => '28',
'Seite-30' => '29',
'Seite-31' => '30',
)
),
),
),
More information about the TYPO3-english
mailing list