Zum Inhalt springen

RealURL und cal

Erstellt am 13. Dezember 2008 · 7 Antworten · letzte Antwort am 12. Juli 2012

Tags: RealURL, Kalender & Termine, Frage

HMoellendorf ·

Hallo Leute,

ich habe Typo3 mitsamt realurl und cal am laufen, möchte aber jetzt die Links auch entsprechend in "reale" URLs umwandeln, damit diese suchmaschinenfreundlich sind.

Kann mir einer sagen, wo ich anfangen muss? Ich habe die postVarSets bereits hinzugefügt.

Viele Grüße
HMoellendorf

HMoellendorf ·

Genau die Konfiguration ist in meinem realurlconf.php drin 🙁

<?php
/*
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tstemplate.php'] ['linkData-PostProc'] []
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['tslib/class.tslib_fe.php'] ['checkAlternativeIdMethods-PostProc'] []
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urldecodecache']
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urlencodecache']
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE'] ['addRootLineFields'] .=
',tx_realurl_pathsegment,alias,nav_title,title';
$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
// 'postVarSet_failureMode' => 'redirect_goodUpperDir',
),
'rewrite' => array(
),
'preVars' => array(
/*
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
'valueDefault' => 'de',
),
),

),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => '1'
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'page.html' => array(
'keyValues' => array (
'type' => 1,
),
),
),
),
'fixedPostVarSets' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
//archive
'period' => array (
array (
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[pL]',
//'valueMap => array()
),

array (
'GETvar' => 'tx_ttnews[arc]',
'valueMap' => array(
'non-archived' => -1,
),
),
),

'browse' => array (
array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'select' => array (
array (
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array (
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'article' => array(
array (
'GETvar' => 'tx_ttnews[backPid]',
// 'valueMap => array(
// ),
),
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 12,
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
);
*/

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
 
 'init' => array(
  'enableCHashCache' => 1,
  'appendMissingSlash' => 'ifNotFile',
  'enableUrlDecodeCache' => 'TRUE',
  'enableUrlEncodeCache' => 'TRUE',
  'postVarSet_failureMode' => 'redirect_goodUpperDir'
 ),
 
 'preVars' => array(
  array(
   'GETvar' => 'no_cache',
   'valueMap' => array(
    'no_cache' => 1,
   ),
   'noMatch' => 'bypass',
  ),
  array(
   'GETvar' => 'L',
   'valueMap' => array(
    'de' => '1',
   ),
   'noMatch' => 'bypass',
  ),
 ),
 'postVarSets' => array(
'cal' => array(
	array(
		'GETvar' => 'tx_cal_controller[view]'
	),
	array(
		'GETvar' => 'tx_cal_controller[getdate]'
	),
	array(
		'GETvar' => 'tx_cal_controller[gettime]'
	),
	array(
		'GETvar' => 'tx_cal_controller[lastview]'
	),
	array(
		'GETvar' => 'tx_cal_controller[type]'
	),
	
	array(
		'GETvar' => 'tx_cal_controller[category]',
		'lookUpTable' => array(
			'table' => 'tx_cal_category',
			'id_field' => 'uid',
			'alias_field' => 'title',
			'addWhereClause'  => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '_',
			 ),
		 
		),
	),
	array(
		'GETvar' => 'tx_cal_controller[uid]',
		'lookUpTable' => array(
			'table' => 'tx_cal_event',
			'id_field' => 'uid',
			'alias_field' => 'title',
			'addWhereClause'  => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '_',
			),
		),
	),
	array(
		'GETvar' => 'tx_cal_controller[gettime]'
	),
	array(
		'GETvar' => 'tx_cal_controller[preview]'
	),
	
),
 ),
 'fileName' => array (
  'defaultToHTMLsuffixOnPrev' => true,
  'index' => array(
   'backend.php' => array(
    'keyValues' => array (
     'type' => 1,
    )
   ),
  ),
 ),
 'pagePath' => array(
  'type' => 'user',
  'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  'spaceCharacter' => '_',
  'languageGetVar' => 'L',
  'expireDays' => 3,
  'rootpage_id' => '1'
 ),
);
?>
HMoellendorf ·

Hallo nochmal,

ich bin leider keinen Schritt weiter gekommen. Kann jemand über meinen Code hinüber schauen, wo eventuell ein Fehler ist?

Wäre echt klasse.

Vielen Dank
HMoellendorf

HMoellendorf ·

Hallo nochmal,

ich habe ja leider noch keine Rückmeldung erhalten, deswegen frage ich nochmal nach: Weiß jemand, woran es liegt, dass die Calendar Base (cal) Links nicht RealURL angezeigt werden?

Ferner wäre es mir wichtig, dass diese Links statisch sind und somit in der Google Sitemap auftauchen, geht das?

Viele liebe Grüße
HMoellendorf

Sebastian Schmal ·
HMoellendorf schrieb

Hallo nochmal,

ich habe ja leider noch keine Rückmeldung erhalten, deswegen frage ich nochmal nach: Weiß jemand, woran es liegt, dass die Calendar Base (cal) Links nicht RealURL angezeigt werden?

Ferner wäre es mir wichtig, dass diese Links statisch sind und somit in der Google Sitemap auftauchen, geht das?

Viele liebe Grüße
HMoellendorf

habe auch noch das problem... wenn du da eine hilfe gefunden hast?
bitte posten 😉

Sebastian Schmal ·
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(


/* ext cal */
'postVarSets' => array(
	'_DEFAULT' => array(
		'eventtermin'=> array(
			array(
				'GETvar' => 'tx_cal_controller[view]'
			),
			array(
				'GETvar' => 'tx_cal_controller[getdate]'
			),

			array(
                'GETvar' => 'tx_cal_controller[gettime]'
            ),
			

			array(
				'GETvar' => 'tx_cal_controller[type]'
			),
		
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_phpicalendar'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_event',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_organizer'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_organizer',
					'id_field' => 'uid',
					'alias_field' => 'name',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_location'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_location',
					'id_field' => 'uid',
					'alias_field' => 'name',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'GETvar' => 'tx_cal_controller[category]',
				'lookUpTable' => array(
					'table' => 'tx_cal_category',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					 ),
		
				),
			),
			array(
				'GETvar' => 'tx_cal_controller[lastview]'
			),
			
			array(
                'GETvar' => 'tx_cal_controller[preview]'
            ),
			
			
		),
	
	),
),
/* end ext cal */

);

?>

Die geht bei mir! Noch nicht optimal, aber soweit okay

andy-man ·

Hallo,
konnte vielleicht jemand das Problem lösen mit Typo3 Version 4.7 und RealUrl 1.12.2 und cal (1.4.3)?
Die gefunden Scripte in den Foren haben leider nicht den erwartete Erfolg gebracht.
Es wird immer der Schnipsel:

l?tx_cal_controller[view]=event&tx_cal_controller[type]=tx_cal_phpicalendar&tx_cal_controller[uid]=2&tx_cal_controller[lastview]=view-list|page_id-7&tx_cal_controller[year]=2012&tx_cal_controller[month]=07&tx_cal_controller[day]=18&cHash=fc9db4b784c3262522e39c1abb59a84f

angehängt.

Hier mal meine realconf

<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'_DEFAULT' => array(
    		'init' => array(
			'enableCHashCache' => 1,
			'appendMissingSlash' => 'ifNotFile',
			'enableUrlDecodeCache' => 1,
			'enableUrlEncodeCache' => 1,
			'postVarSet_failureMode' => '',
		),
		'redirects' => array(),
		'preVars' => array(
			array(
				'GETvar' => 'no_cache',
					'valueMap' => array(
						'nc' => 1,
					),
					'noMatch' => 'bypass',
				),
				array(
					'GETvar' => 'L',
					'valueMap' => array(
						# 'de' => '0',
						'en' => '1',
					),
					'valueDefault' => 'de',
					'noMatch' => 'bypass',
				),
			),
			'pagePath' => array(
				'type' => 'user',
				'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
				'spaceCharacter' => '-',
				'languageGetVar' => 'L',
				'expireDays' => 7,
				'rootpage_id' => 1,
				'firstHitPathCache' => 1,
			),
			'fixedPostVars' => array(),
			'postVarSets' => array(
				'_DEFAULT' => array(
					// news archive parameters
					'archive' => array(
						array(
							'GETvar' => 'tx_ttnews[year]' ,
						),
						array(
							'GETvar' => 'tx_ttnews[month]' ,
							'valueMap' => array(
							'january' => '01',
							'february' => '02',
							'march' => '03',
							'april' => '04',
							'may' => '05',
							'june' => '06',
							'july' => '07',
							'august' => '08',
							'september' => '09',
							'october' => '10',
							'november' => '11',
							'december' => '12',
						)
					),
				),
				// news pagebrowser
				'browse' => array(
					array(
						'GETvar' => 'tx_ttnews[pointer]',
					),
				),
				// news categories
				'select_category' => array (
					array(
						'GETvar' => 'tx_ttnews[cat]',
					),
				),
				// news articles anMd searchwords
				'article' => array(
					array(
						'GETvar' => 'tx_ttnews[tt_news]',
						'lookUpTable' => array(
							'table' => 'tt_news',
							'id_field' => 'uid',
							'alias_field' => 'title',
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
								'strtolower' => 1,
								'spaceCharacter' => '-',
							),
						),
					),
					array(
						'GETvar' => 'tx_ttnews[backPid]',
					),
					array(
						'GETvar' => 'tx_ttnews[swords]',
					),
				),
			),
		),

		// configure filenames for different pagetypes
		'fileName' => array(
			'defaultToHTMLsuffixOnPrev' => 1,
			'index' => array(
				'print.html' => array(
					'keyValues' => array(
						'type' => 98,
					),
				),
				'rss.xml' => array(
					'keyValues' => array(
						'type' => 100,
					),
				),
				'rss091.xml' => array(
					'keyValues' => array(
						'type' => 101,
					),
				),
				'rdf.xml' => array(
					'keyValues' => array(
						'type' => 102,
					),
				),
				'atom.xml' => array(
					'keyValues' => array(
						'type' => 103,
					),
				),
			),
    ),
    // Ende - configure filenames for different pagetypes
	
	'termin'=> array(
			array(
				'GETvar' => 'tx_cal_controller[view]'
			),
			array(
				'GETvar' => 'tx_cal_controller[getdate]'
			),
 
			array(
                'GETvar' => 'tx_cal_controller[gettime]'
            ),
 
 
			array(
				'GETvar' => 'tx_cal_controller[type]'
			),
 
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_phpicalendar'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_event',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_organizer'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_organizer',
					'id_field' => 'uid',
					'alias_field' => 'name',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'cond' => array (
					'prevValueInList' => 'tx_cal_location'
				),
				'GETvar' => 'tx_cal_controller[uid]',
				'lookUpTable' => array(
					'table' => 'tx_cal_location',
					'id_field' => 'uid',
					'alias_field' => 'name',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
			array(
				'GETvar' => 'tx_cal_controller[category]',
				'lookUpTable' => array(
					'table' => 'tx_cal_category',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause'  => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					 ),
 
				),
			),
			array(
				'GETvar' => 'tx_cal_controller[lastview]'
			),
 
			array(
                'GETvar' => 'tx_cal_controller[preview]'
            ),
 
 
		),
 //ende cal
	
	),
);


 
?>

Vielleicht kann mir jemand weiterhelfen.

Danke andy-man