简体   繁体   中英

RealURL and tt_news multiple Singleviews

I have a typo3 with multiple trees (one per language) under a common root and domain,

www.example.com (maintemplate)
-en (+ext)
--news
---singleview(hidden)
-fr (+ext)
--french_news
---singleview(hidden)
-de (+ext)
--german_news
---singleview(hidden)
-Newsfolder
--english
--french
--german

the tt_news.SinglePID is configured via constants in the extension templates. My Problem is, that Realurl always uses the SinglePID from the english tree, for example when I click on a german news entry Realurl brings me to the english page and shows the german news. Any Idea how to fix that?

Thanks

使用TypoScript而不是form设置单个pid,然后使用常见条件对其进行更改

Are you sure it's a RealURL issue? Turn it off via TypoScript setup config.tx_realurl_enable = 0 to see whether it's buggy even without RealURL manipulating your urls or not.

Regarding your issue try this in your global TypoScript constants:

plugin.tt_news.singlePid = x
[PIDinRootline = a]
plugin.tt_news.singlePid = y
[PIDinRootline = b]
plugin.tt_news.singlePid = z
[global]

Whereby x is the uid of the english single page, y the german one, z the french one. And a and b the root pages of those trees.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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