简体   繁体   English

TYPO3,Realurl,新闻和语言

[英]TYPO3, Realurl, News and mutilanguage

I have a TYPO3 multilanguage site, and I am trying to configure Realurl and News. 我有一个TYPO3多语言站点,并且正在尝试配置Realurl和News。 Question is: for single/detailed News urls, how do I get both speaking and language localized versions? 问题是:对于单个/详细新闻网址,如何获得口语和语言本地化版本?

I mean, I am able to get: 我的意思是,我能够得到:

localhost/it/paginaSingola/news/detail/News/titolo-singolo
localhost/en/singlePage/news/detail/News/single-title

but I wish something like: 但我希望这样:

all italian >> localhost/it/paginaSingola/notizie/singola/Notizie/titolo-singolo 
all english >> localhost/en/singlePage/news/detail/News/single-title

I am not even sure whether it is a Realurl or a News issue. 我什至不确定这是Realurl还是新闻问题。 In the former case, do I need to define valueMap for postVarSets? 在前一种情况下,是否需要为postVarSets定义valueMap? How do I do that? 我怎么做?

TYPO3 6.2.13 News 3.2.2 Realurl 1.13.4 sr_language_menu 6.0.7 TYPO3 6.2.13新闻3.2.2 Realurl 1.13.4 sr_language_menu 6.0.7

cheers mario 欢呼马里奥

This is not possible with realurl 1.x but it can be changed in realurl 2.x. 对于realurl 1.x,这是不可能的,但是可以在realurl 2.x中进行更改。 You can write a feature request here: https://github.com/dmitryd/typo3-realurl/issues 您可以在此处编写功能请求: https : //github.com/dmitryd/typo3-realurl/issues

RealURL 2.0 is expected to arrive to TER soon. RealURL 2.0预计将很快发布。 It is already operational except for mount point support and BE module. 除安装点支持和BE模块外,它已经可以运行。 BE module is in the active development right now. BE模块目前正在积极开发中。

Edit (March 01, 2016): this is now possible with RealURL 2.x. 编辑(2016年3月1日):现在可以使用RealURL2.x。 Basically you create a copy of your configuration and give it another name. 基本上,您将创建配置的副本并为其指定其他名称。 Normally you have _DEFAULT , now you do something like _lang1 . 通常您拥有_DEFAULT ,现在您可以执行_lang1类的_lang1 Than you use _DOMAINS to say that your L=1 should use _lang1 : 比起您使用_DOMAINS来表示,您的L = 1应该使用_lang1

'_DOMAINS' => array( 'encode' => array( array( 'GETvar' => 'L', 'value' => 0, 'useConfiguration' => '_DEFAULT', ), array( 'GETvar' => 'L', 'value' => 1, 'useConfiguration' => '_lang1', ) ),

In your _lang1 you define a different prefix for a postVarSet. _lang1您为postVarSet定义了不同的前缀。

That's all. 就这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM