Help on WEM API to display Current Channel Page URL
Hi,
We are using WEM8.5.2 and Navigation component to displaying the Current Channel's Translation Link on Language Picker. Link with Arabic Locale. (Customized display View). Basically we are checking the system component whether the Channel having the
We are using WEM 8.5.2 with Portal (Tomcat as Application Server).
We are using custom Language picker to display available Translation for the Page. This functionality is not working from past few weeks (no Changes happen during these time)
Basically below code will help to get the currentChannel's Translation URL. But somereason it is showing different Page URL.
For Example if I am in home page (http://domain.com/home) then the language picker should taking me to http://domain.com/ar/home but instead of that it is taking me into something different (Ex: http://domain.com/ar/about/test) and this is randomly changing.
Initially We used Custom Cache Settings to Expire the TTL for 2 Seconds and it was working fine. In the Middle we started getting this issue and we removed custom value. But still its not working.
Please let me know whether the issue may related to Cache or Code? Do we have any option to get the Current Channel's Translation URL by using API?
<templating:contentLink var="linkUrl" oid="${currentChannel.system.id}" />
<li class="hidden-sm hidden-xs"> <a href="${linkUrl}" title="View this page in the English language">
<templating:channelLocalizedMetadata oid="${currentChannel.system.id}" result="localizedMetadataXml"/>
</a> </li>
Thanks
Jayaram
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 153 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories