TYPO3-realurl忽略了已创建/自己的扩展名 [英] TYPO3 - realurl is ignoring created/own extension

查看:112
本文介绍了TYPO3-realurl忽略了已创建/自己的扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在运行的TYPO3安装(7.6),带有最新的realurl和新闻扩展名.一切正常.现在,我创建了一个简单的扩展名tx_ffscarexample,并努力操作它的路径.在tx_ffscarexample中,我有列出,显示,新建,创建,编辑,更新,删除"操作.现在,当第一次使用列表视图调用/car-example/页面时,我的路径如下:

I have a running TYPO3 installation (7.6) with with the latest realurl and news extension. All working fine. I now created a simple extension tx_ffscarexample and struggling to manipulate the paths for it. In tx_ffscarexample I have 'list, show, new, create, edit, update, delete' actions. Now, when first calling the page /car-example/ with the List View ... my path looks like:

列表视图

/car-example/

...我将所有记录显示在一个表中.

... I get all records showing in a table.

但是当我将鼠标悬停在链接上时,我会得到

But already when I hover over the links I get like

/car-example/?tx_ffscarexample_carlist[car]=3&tx_ffscarexample_carlist[action]=show&tx_ffscarexample_carlist[controller]=Car&cHash=0b3f5b986dsdf95f33465e3d324e1e83a

当我进入详细视图时...

When I then go into a detail view ... I get e.g.

显示视图

/car-example/?tx_ffscarexample_carlist[car]=3&tx_ffscarexample_carlist[action]=show&tx_ffscarexample_carlist[controller]=Car&cHash=0b3f5b236dd5295f5f6234d324e1e83a

新视图

/car-example/?tx_ffscarexample_carlist[action]=new&tx_ffscarexample_carlist[controller]=Car&cHash=4df2347378f318530423761f7627394a6

编辑视图

/car-example/?tx_ffscarexample_carlist%5Bcar%5D=15&tx_ffscarexample_carlist%5Baction%5D=edit&tx_ffscarexample_carlist%5Bcontroller%5D=Car&cHash=72344542eaf1c64c12347dd3c7714

列表视图

/car-example/?tx_ffscarexample_carlist[action]=list&tx_ffscarexample_carlist[controller]=Car&cHash=23d56247c27805c2c234c8c23353c7e

在realurl_conf.php中,我为扩展名添加了

In realurl_conf.php I've added for the extension:

...

    'postVarSets' => array(
            '_DEFAULT' => array(
                    'car' => array(
                            array(
                                    'GETvar' => 'tx_ffscarexample_carlist[action]',
                                    'valueMap' => array(
                                            'list' => 'list',
                                            'show' => 'show',
                                            'new' => 'new',
                                            'edit' => 'edit',
                                            'create' => 'create',
                                            'delete' => 'delete',
                                            'update' => 'udpate'
                                    ),
                                    'noMatch' => 'bypass'
                            ),
                            array(
                                    'GETvar' => 'tx_ffscarexample_carlist[controller]',
                                    'valueMap' => array(
                                            'car' => 'car',
                                    ),
                                    'noMatch' => 'bypass'
                            ),
                            array(
                                    'GETvar' => 'tx_ffscarexample_carlist[car]',
                                    'lookUpTable' => array(
                                            'table' => 'tx_ffscarexample_domain_model_car',
                                            'id_field' => 'uid',
                                            'alias_field' => 'name',
                                            '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,
                                    )
                            )                                
                    ),

            ),
    )

...

我想念什么?

我想拥有的……

/car-example/car/
/car-example/car/new

/car-example/car/audi/
/car-example/car/audi/edit/
/car-example/car/audi/delete/
/car-example/car/bmw/
/car-example/car/bmw/edit/
/car-example/car/bmw/delete/

似乎这里是类似的问题:

Seems like here are similar issues:

typo3 7,bootstrap_package,RealUrl和自己的扩展名

推荐答案

修复了该问题.我所做的是:

Fixed it. What I did was:

  • 我停用并删除了该扩展名.
  • 已删除typo3temp和所有realurl表.
  • InstallTool中清除的缓存
  • 再次安装了扩展程序. ->现在一切都按预期运行
  • I deactivated and removed the extension.
  • Deleted typo3temp and all realurl tables.
  • Cleared caches in InstallTool
  • Installed the extension again. -> Now everything works as expected

*请复制记录和表,然后再删除它们,以防万一.

*Please make copies of records and tables before removing them just in case.

这可能是由于安装顺序造成的:

It might be due to the installation order:

安装扩展的顺序很重要!请确保先安装RealURL扩展,然后安装引导程序包,然后再安装包含RealURL规则的其余扩展,包括新规则." (来源: https://aimeos.org/tips/tag/realurl/)

"The order you will install the extensions matters! Make sure the RealURL extension is installed first, then the bootstrap package and afterwards the rest of the extensions which contain RealURL rules including your new one." (Source: https://aimeos.org/tips/tag/realurl/ )

这篇关于TYPO3-realurl忽略了已创建/自己的扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆