首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TYPO3扩展新闻和realurl

TYPO3扩展新闻和realurl
EN

Stack Overflow用户
提问于 2017-01-05 18:18:38
回答 0查看 951关注 0票数 0

TYPO3 v 7.6.13新闻5.3.1 realurl 2.1.5

我已经为我的站点添加了ext:news的股票realurl配置(手动realurl.conf)。

我的URL是这样的:

www.example.com/news/story/news/detail/News/thisismystorytitle

我的页面树:

代码语言:javascript
复制
Root
-News (News - List)
--Story (News - Detail)

我的realurl配置

代码语言:javascript
复制
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
  'www.mysite.com' => 
  array (
    'init' => 
    array (
      'appendMissingSlash' => 'ifNotFile,redirect',
      'emptyUrlReturnValue' => '/',
    ),
    'pagePath' => 
    array (
      'rootpage_id' => '1',
    ),
    'fileName' => 
    array (
      'defaultToHTMLsuffixOnPrev' => 0,
      'acceptHTMLsuffix' => 1,
      'index' => 
      array (
        'print' => 
        array (
          'keyValues' => 
          array (
            'type' => 98,
          ),
        ),
      ),
    ),
        'preVars' => array(
            array(
                'GETvar' => 'L',
                'valueMap' => array('en'=>0, 'cy'=>1),
                'noMatch' => 'bypass',
            ),
        ), // end preVars

    'postVarSets' => 
    array (
      '_DEFAULT' => 
      array (

// EXT:news start
'news' => array(
        array(
                'GETvar' => 'tx_news_pi1[action]',
        ),
        array(
                'GETvar' => 'tx_news_pi1[controller]',
        ),
        array(
                'GETvar' => 'tx_news_pi1[news]',
                'lookUpTable' => array(
                        'table' => 'tx_news_domain_model_news',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                        'languageGetVar' => 'L',
                        'languageExceptionUids' => '',
                        'languageField' => 'sys_language_uid',
                        'transOrigPointerField' => 'l10n_parent',
                        'autoUpdate' => 1,
                        'expireDays' => 180,
                ),
        ),
),
// EXT:news end

      ),
    ),
  ),
);

感谢任何人可以建议我的设置丢失或错误。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41482383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档