realurl 拼写错误 3

发布于 2024-11-04 20:20:16 字数 152 浏览 2 评论 0原文

我正在开发一个用typo3 制作的网站。我正在做别人制作的网站的一部分,所以我对typo3不太了解。

该网站使用 realurl 将 url 转换为可读的 URL。我怎样才能制作一个真实的网址?例如,当我制作索引页面时,没有为此页面制作 realurl。我怎样才能生成一个?

I'm working on a website that is made in typo3. I'm doing a part of the website that is made by somebody else, so I don't know that much of typo3.

This website uses realurl to translate the url to a readable one. How can I make a realurl? When I make like for example the index page there is no realurl made for this page. How could I generate one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

场罚期间 2024-11-11 20:20:16
橘香 2024-11-11 20:20:16

Dmitry 获得了有关 RealURL 的更多相关教程:

当您使其使用默认配置并理解以下部分的含义时,RealURL 将非常容易理解:'init', “preVars”、“postVarSets”、“pagePath”、“fixedPostVars”和“fileName”。

Dmitry got more relevant tutorials about RealURL:

RealURL will be very easy to understand when you'll make it work with default configuration and understand the meaning of parts: 'init', 'preVars', 'postVarSets', 'pagePath', 'fixedPostVars' and 'fileName'.

野稚 2024-11-11 20:20:16

复制我的配置
设置中的打字稿:

config.simulateStaticDocuments = 0

config.baseURL = /
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.absRefPrefix = http://www.ceisufro.cl/
page.config.language = cl
config.sys_language_uid= 0
config.useSysLanguageTitle = 1
config.language= es
config.language_alt= es
config.htmlTag_langKey= es
config.linkVars = L
config.sys_language_overlay = 1
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml"
   xml:lang="es" lang="es"*

在文件 localconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'www.ceisufro.cl'=> array(
    'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
       'preVars' => array(
          '0' => array(
             'GETvar' => 'L',
             'valueMap' => array(
                'es' => '1',
                'en' => '0',
                'it' => '4',
            ),
                'noMatch' => 'bypass',
             'valueDefault' => 'es',
         ),

      ),

       'fileName' => array(
          'defaultToHTMLsuffixOnPrev' => '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',
      ), 'fileName' => array (
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                        'id' => '37'
                    ),
                ),
                 'contacto.xml' => array (
                    'keyValues' => array (
                        'id' => '666',
                        'no_cache'=>'1'
                    ),
                ),

                )),
       'fixedPostVars' => array(
      ),

   ),

);

转到分机管理器,找到分机 realurl 并添加以下配置

选中启用自动配置
自动配置文件格式中选择Serializable
检查启用 devLog

我等待可以帮助某人

Copy my configuration
typoscript in setup:

config.simulateStaticDocuments = 0

config.baseURL = /
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.absRefPrefix = http://www.ceisufro.cl/
page.config.language = cl
config.sys_language_uid= 0
config.useSysLanguageTitle = 1
config.language= es
config.language_alt= es
config.htmlTag_langKey= es
config.linkVars = L
config.sys_language_overlay = 1
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml"
   xml:lang="es" lang="es"*

In file localconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'www.ceisufro.cl'=> array(
    'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
       'preVars' => array(
          '0' => array(
             'GETvar' => 'L',
             'valueMap' => array(
                'es' => '1',
                'en' => '0',
                'it' => '4',
            ),
                'noMatch' => 'bypass',
             'valueDefault' => 'es',
         ),

      ),

       'fileName' => array(
          'defaultToHTMLsuffixOnPrev' => '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',
      ), 'fileName' => array (
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                        'id' => '37'
                    ),
                ),
                 'contacto.xml' => array (
                    'keyValues' => array (
                        'id' => '666',
                        'no_cache'=>'1'
                    ),
                ),

                )),
       'fixedPostVars' => array(
      ),

   ),

);

go to ext manager, find the ext realurl and add the following configurations

check Enable automatic configuration
select Serializable in Automatic configuration file format
check Enable devLog

I wait to can help somebody

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文