---
title: "RealUrl Konfiguration für das CHC_Forum"
url: "https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL"]
created: "2005-11-25"
last_reply: "2007-03-10"
replies: 6
solved: false
page: 1
pages: 1
lang: "de"
---

# RealUrl Konfiguration für das CHC_Forum

Extensions · 6 Antworten · gestartet 2005-11-25

## Eröffnungsbeitrag

**Waveshaper** · 2005-11-25 · [Beitrag #1](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/1)

Kann mir jemand eine funktionierende Real-Url-Konfiguration für das CHC_Forum posten???

Die hier scheint bei mir nicht zu funktionieren...

<http://typo3.org/documentation/document-library/chc_forum/Introduction-a911e0c210/>

hab dieses Script in meine localconf.php geschrieben. leider ohne erfolg...

gruss, waveshaper

## Antworten

### [#2](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/2) · steffenk · 2005-11-25

dieser Abschnitt funktioniert prima.

Wichtig: Du musst ihn innerhalb von _DEFAULT platziern

```php
'postVarSets' => array(
        '_DEFAULT' => array (
// hierhin!
  )
)
```

### [#3](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/3) · Waveshaper · 2005-11-25

mein localconf.php sieht so aus (habe nur den realurl abschnitt hiereinkopiert.. läuft soweit gut, aber eben funktioniert das mit dem chc-forum immer noch nicht...

```html
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => '1','de' => '7',
        ),
        'noMatch' => 'bypass',
        ),
    ),
    'fileName' => array (
        'index' => array(
            'backend.php' => array(
                'keyValues' => array (
                    'type' => 100,
                )
            ),
            'print' => array(                         
                'keyValues' => array(
                    'type' => 98,
                )
            ),
        ),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
            'article' => array(

'forum' => array(
array(
	'GETvar' => 'view',												
),
array(
	'GETvar' => 'cat_uid',
	'lookUpTable' => array(
		'table' => 'tx_chcforum_category',
		'id_field' => 'uid',
		'alias_field' => 'cat_title',
		'addWhereClause' => ' AND NOT deleted',
		'useUniqueCache' => 1,
		'useUniqueCache_conf' => array(
		      'strtolower' => 1,
		     'spaceCharacter' => '-',
				),
		),
),
array(
	'GETvar' => 'conf_uid',
	'lookUpTable' => array(
			'table' => 'tx_chcforum_conference',
			'id_field' => 'uid',
			'alias_field' => 'conference_name',
			'addWhereClause' => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '-',
			),
		),
),
array(
	'GETvar' => 'thread_uid',
	'lookUpTable' => array(
				'table' => 'tx_chcforum_thread',
				'id_field' => 'uid',
				'alias_field' => 'thread_subject',
				'addWhereClause' => ' AND NOT deleted',
				'useUniqueCache' => 1,
				'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '-',
				),
		 ),
),
array(
	'GETvar' => 'post_uid',
	'lookUpTable' => array(
				'table' => 'tx_chcforum_post',
				'id_field' => 'uid',
				'alias_field' => 'post_subject',
				'addWhereClause' => ' AND NOT deleted',
				'useUniqueCache' => 1,
				'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '-',
				),
),
),

),






                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]',
                ),
            ),
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3
    ),
);
```

weiss jemand, woran das liegen könnte?[/url]

### [#4](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/4) · Waveshaper · 2005-11-25

hab den fehler gefunden... bin eine zeile im code verrutscht.. naja, bugs bestehen meist aus einem falschen zeichen.. oder eben einer zeilenverwechslung...

als dank für deine rasche hilfe, poste ich nun hier für alle forum-teilnehmer eine funktionierende real-url konfiguration für chc_forum, die auch noch tt_news und mehrsprachgikeit unterstützt...

```html
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => '1','de' => '7',
        ),
        'noMatch' => 'bypass',
        ),
    ),
    'fileName' => array (
        'index' => array(
            'backend.php' => array(
                'keyValues' => array (
                    'type' => 100,
                )
            ),
            'print' => array(                         
                'keyValues' => array(
                    'type' => 98,
                )
            ),
        ),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
'forum' => array(
array(
	'GETvar' => 'view',												
),
array(
	'GETvar' => 'cat_uid',
	'lookUpTable' => array(
		'table' => 'tx_chcforum_category',
		'id_field' => 'uid',
		'alias_field' => 'cat_title',
		'addWhereClause' => ' AND NOT deleted',
		'useUniqueCache' => 1,
		'useUniqueCache_conf' => array(
		      'strtolower' => 1,
		     'spaceCharacter' => '-',
				),
		),
),
array(
	'GETvar' => 'conf_uid',
	'lookUpTable' => array(
			'table' => 'tx_chcforum_conference',
			'id_field' => 'uid',
			'alias_field' => 'conference_name',
			'addWhereClause' => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '-',
			),
		),
),
array(
	'GETvar' => 'thread_uid',
	'lookUpTable' => array(
				'table' => 'tx_chcforum_thread',
				'id_field' => 'uid',
				'alias_field' => 'thread_subject',
				'addWhereClause' => ' AND NOT deleted',
				'useUniqueCache' => 1,
				'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '-',
				),
		 ),
),
array(
	'GETvar' => 'post_uid',
	'lookUpTable' => array(
				'table' => 'tx_chcforum_post',
				'id_field' => 'uid',
				'alias_field' => 'post_subject',
				'addWhereClause' => ' AND NOT deleted',
				'useUniqueCache' => 1,
				'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '-',
				),
),
),

),
            '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]',
                ),
            ),
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3
    ),
);
```

### [#5](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/5) · Lawrence · 2006-09-16

> **Waveshaper schrieb:**
>
> als dank für [steffenks] rasche hilfe, poste ich nun hier für alle forum-teilnehmer eine funktionierende real-url konfiguration für chc_forum, die auch noch tt_news und mehrsprachgikeit unterstützt...

Liebe(r) Waveshaper,
vielen Dank dafür, dass du diese Konfiguration gepostet hast, ich sah mich schon die ganzen Anleitung schmökern, um herauszufinden, wie man sich die Postnamen aus der Datenbank holt...
Herzliche Grüße
Lorenz

### [#6](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/6) · Contrixx-Webdesign · 2006-10-14

Hallo,

bei mir klappt es irgendwie nicht .... wo oder in welcher Datei muss ich den ganz genau diesen Code einfügen?

Danke im vorraus...

### [#7](https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum/7) · bakanahito · 2007-03-10

Vielen Dank erst Mal für das Posting der Konfiguration. Obwohl der Thread schon etwas älter ist, hoffe ich, dass jemand eine Antwort weiß. Ich habe den Code zum Test nun einmal in meine localconfig eingebunden. Funktioniert soweit auch. Mein Problem nun: mit dem neuen Code werden die URL in folgender Form dargestell: www.domain.de/ordner1/seite
Meine ursprüngliche URL-Darstellung ist aber www.domain.de/ordner1/seite.html
Dies möchte ich natürlich weiterbeibehalten, nur weiss ich nicht, wo ich ansetzen soll bzw. ich den neuen Code abändern muss, damit meine URLs wieder mit .html dargestellt werden. Hat irgendjemand vielleicht einen Tipp für mich?
Meine localconf, die .html ermöglicht, sieht wie folgt aus:

```php
<?
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
 'init' => array(
  'enableCHashCache' => 1,
  'enableUrlDecodeCache' => 1,
  'enableUrlEncodeHash' => 1,
 ),
 'rewrite' => array(),
 'preVars' => array(),
 '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(
   'period' => array (
    array (
     'condPrevValue' => -1,
     'GETvar' => 'tx_ttnews[pS]',
    ),
    array (
     'GETvar' => 'tx_ttnews[pL]',
    ),
    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' => '-',
      ),
     ),
    ),
   ),
  ),
 ),
);
```

Da ich sobald wie möglich ein Forum in meine Seite einbinden will und dieses nach Möglichkeit auch statische URLs aufweisen sollte, würde ich mich sehr freuen, wenn mir jemand mit diesem Problem weiterhelfen könnte.
Vielen Dank schon mal!

---

Quelle: „RealUrl Konfiguration für das CHC_Forum“, typo3.net, https://www.typo3.net/d/33832-realurl-konfiguration-fuer-das-chc-forum
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
