DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Realurl configuration

This section will show you how you can rewrite the urls using the extension RealURL.

Basic setup

The most simple example is the following one. You can just add the section with copy&paste to the postVarSets/_DEFAULT section:

// EXT:int_blog start
        'article' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[article]',
                        'lookUpTable' => array(
                                'table' => 'tx_intblog_domain_model_article',
                                'id_field' => 'uid',
                                'alias_field' => 'title',
                                'addWhereClause' => ' AND NOT deleted AND NOT hidden',
                                'useUniqueCache' => 1,
                                'useUniqueCache_conf' => array(
                                        'strtolower' => 1,
                                        'spaceCharacter' => '-',
                                ),
                        ),
                ),
        ),
        'tag' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[tag]',
                        'lookUpTable' => array(
                                'table' => 'tx_intblog_domain_model_tag',
                                'id_field' => 'uid',
                                'alias_field' => 'title',
                                'addWhereClause' => ' AND NOT deleted',
                                'useUniqueCache' => 1,
                                'useUniqueCache_conf' => array(
                                        'strtolower' => 1,
                                        'spaceCharacter' => '-',
                                ),
                        ),
                ),
        ),
        'comment' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[commentId]',
                        'lookUpTable' => array(
                                'table' => 'tx_intblog_domain_model_comment',
                                'id_field' => 'uid',
                                'alias_field' => 'description',
                                'addWhereClause' => ' AND NOT deleted',
                                'useUniqueCache' => 1,
                                'useUniqueCache_conf' => array(
                                        'strtolower' => 1,
                                        'spaceCharacter' => '-',
                                ),
                        ),
                ),
        ),
        'category' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[category]',
                        'lookUpTable' => array(
                                'table' => 'tx_intblog_domain_model_category',
                                'id_field' => 'uid',
                                'alias_field' => 'title',
                                'addWhereClause' => ' AND NOT deleted',
                                'useUniqueCache' => 1,
                                'useUniqueCache_conf' => array(
                                        'strtolower' => 1,
                                        'spaceCharacter' => '-',
                                ),
                        ),
                ),
        ),
        'year' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[year]',
                        'valueMap' => array(
                                'year' => 'year',
                        ),
                ),
        ),
        'month' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[month]',
                        'valueMap' => array(
                                'month' => 'month',
                        ),
                ),
        ),
        'page' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[@widget_0][currentPage]',
                ),
        ),
        'type' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[type]',
                        'valueMap' => array(
                                'type' => 'type',
                        ),
                ),
        ),
        'word' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[word]',
                        'valueMap' => array(
                                'word' => 'word',
                        ),
                ),
                array(
                        'GETvar' => 'tx_intblog_intblog[@widget_0][word]',
                        'valueMap' => array(
                                'word' => 'word',
                        ),
        'noMatch' => 'bypass',
                ),
        ),
        'controller' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[controller]',
                        'valueMap' => array(
                                'Article' => '',
                        ),
                        'noMatch' => 'bypass',
                ),
        ),
        'action' => array(
                array(
                        'GETvar' => 'tx_intblog_intblog[action]',
                        'valueMap' => array(
                                'show' => '',
                        ),
                        'noMatch' => 'bypass',
                ),
        ),

        // EXT:int_blog end