I have an issue regarding realURL alias page switch. I have a custom module for products, for each product i have URL in both available languages (de & en). But when i switch to language then it doesn't take me to the same page i was on.
For Example: product page For German language is /de/produkte/product-details/gewindeschieber-typ-g4/ and if i switch it to english language then it should switched to english url(/en/produkte/product-details/threaded-slide-gate-type-g4/) of same product. But it goes to /en/produkte/product-details/
Please let me know How to fix this issue ?
You have two languages German DE and English UK.
Supposed your lang menu TS looks like:
lib.languageMenu = HMENU
lib.languageMenu {
special = language
special.value = 0,1
1 = TMENU
1 {
wrap = <ul class="lang">|</ul>
noBlur = 1
NO = 1
NO {
linkWrap = <li>|</li> || <li>|</li>
#parameter.insertData = 1
stdWrap.override = <img alt="de" src="fileadmin/flags/Flag_Germany.png" width="35"/> || <img alt="uk" src="fileadmin/flags/Flag_United-Kingdom.png" width="35"/>
#stdWrap.htmlSpecialChars = 1
}
ACT < .NO
ACT {
ATagParams = || ||
#doNotLinkIt = 1
linkWrap = <li class="active">|</li> || <li class="active">|</li>
}
CUR < .NO
CUR {
ATagParams = || ||
#doNotLinkIt = 1
linkWrap = <li class="active">|</li> || <li class="active">|</li>
}
# NO + Translation doesn't exist
#USERDEF1 < .NO
#USERDEF1.doNotLinkIt = 1
# ACT + Translation doesn't exist
#USERDEF2 < .ACT
#USERDEF2.doNotLinkIt = 1
}
}
0 = German [de] and 1 = English [en]
Now you need to append your detail page params to the lang menu TS: eg. tx_news
[globalVar = GP:tx_news_pi1|news > 0]
lib.languageMenu.1.NO{
additionalParams.data = GP:tx_news_pi1|news
additionalParams.intval = 1
additionalParams.wrap = &tx_news_pi1[news]=|
}
[global]
In you case may be your params "tx_referenzen_<fekey>[uid]=<detail-referenzen-uid>" You have to check in your typo3conf/realurl_autoconf.php
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.