Diese Webseite verwendet Cookies. Diese werden u.a. zu statistischen Zwecken verwendet. mehr Informationenschließen
 

TYPO3 Blog Extension - RealURL Konfiguration

RealURL ist an sich eine super Erweiterung, in manchen Fällen sorgt sie aber für graue Haare, so auch bei der TYPO3 Blog Extension (blog), was jedoch weniger an RealURL als an der - zumindest zum jetzigen Stand - etwas dürftigen Dokumentation der Blog-Extension liegt.

Lange Rede, kurzer Sinn, nachfolgend die benötigten Parts in der RealURL-Konfiguration:

postVarSets:

  'postVarSets' => array(
            '_DEFAULT' => array(
                'tx_blog_feed' => array(
                    array(
                        'GETvar' => 'tx_blog_posts[controller]',
                        'valueMap' => array(
                            'posts' => 'Post',
                        )
                    ),
                    array(
                        'GETvar' => 'tx_blog_posts[action]',
                        'valueMap' => array(
                            'recent' => 'listRecentPosts',
                        )
                    ),
                    array(
                        'GETvar' => 'tx_blog_posts[format]',
                    ),
                ),
                'tx_blog_category' => array(
                    array(
                        'GETvar' => 'tx_blog_category[action]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_blog_category[controller]',
                        'noMatch' => 'bypass'
                    )
                ),
                'tx_blog_authorposts' => array(
                    array(
                        'GETvar' => 'tx_blog_authorposts[action]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_blog_authorposts[controller]',
                        'noMatch' => 'bypass'
                    )
                ),
                'tx_blog_tag' => array(
                    array(
                        'GETvar' => 'tx_blog_tag[action]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_blog_tag[controller]',
                        'noMatch' => 'bypass'
                    )
                ),
                'tx_blog_archive' => array(
                    array(
                        'GETvar' => 'tx_blog_archive[action]',
                        'noMatch' => 'bypass'
                    ),
                    array(
                        'GETvar' => 'tx_blog_archive[controller]',
                        'noMatch' => 'bypass'
                    )
                ),
            )
        ),

fixedPostVars:

'fixedPostVars' => array(
            'tx_blog_tag' => array(
                array(
                    'GETvar' => 'tx_blog_tag[tag]',
                    'lookUpTable' => array(
                        'table' => 'tx_blog_domain_model_tag',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                            'strtolower' => 1,
                            'spaceCharacter' => '-',
                        ),
                        'noMatch' => 'bypass',
                    ),
                ),
            ),
            'tx_blog_category' => array(
                array(
                    'GETvar' => 'tx_blog_category[category]',
                    'lookUpTable' => array(
                        'table' => 'sys_category',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                            'strtolower' => 1,
                            'spaceCharacter' => '-',
                        ),
                        'noMatch' => 'bypass',
                    ),
                )
            ),
            'tx_blog_author' => array(
                array(
                    'GETvar' => 'tx_blog_authorposts[author]',
                    'lookUpTable' => array(
                        'table' => 'tx_blog_domain_model_author',
                        'id_field' => 'uid',
                        'alias_field' => 'name',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                            'strtolower' => 1,
                            'spaceCharacter' => '-',
                        ),
                        'noMatch' => 'bypass',
                    ),
                ),
            ),
            'tx_blog_archive' => array(
                array(
                    'GETvar' => 'tx_blog_archive[year]',
                ),
                array(
                    'GETvar' => 'tx_blog_archive[month]',
                    'valueMap' => array(
                        'january' => '1',
                        'february' => '2',
                        'march' => '3',
                        'april' => '4',
                        'may' => '5',
                        'june' => '6',
                        'july' => '7',
                        'august' => '8',
                        'september' => '9',
                        'october' => '10',
                        'november' => '11',
                        'december' => '12',
                    ),
                ),
            ),
            'xyz' => 'tx_blog_category',
            'xyz' => 'tx_blog_tag',
            'xyz' => 'tx_blog_author',
            'xyz' => 'tx_blog_archive',
        ),
    )

Bei "xyz" muss die jeweilige Seitenid eingetragen werden.

Falls die Blogerweiterung immer noch keine schönen URLs angezeigt, Cache löschen!

Ergänzend noch ein Teil für die Feeds:

        'fileName' => array(
                'posts.xml' => [
                    'keyValues' => [
                        'type' => 200,
                    ],
                ],
                'category.xml' => [
                    'keyValues' => [
                        'type' => 210,
                    ],
                ],
                'author.xml' => [
                    'keyValues' => [
                        'type' => 250,
                    ],
                ],
            ],
        ),

Kommentare (0)

No comments found!

Neuen Kommentar schreiben