Originally Posted by
Andreas
If you have other modules, maybe a reader, try to give the reader pages in both trees the same alias, sometimes this is all you need.
I tried this, but with no success.
Page alias couldn't be changed to the existing value using Backend settings (it asks for unique alias). But, I use phpmyadmin and I was able to change it manually. But, It hadn't help.
The problem is that when I click on "Read more" link, whether it is from Newslist or News archive, it forwards me to the page which belongs to the main language - fallback tree.
E.g. - one news item is shown on the page as:
Code:
<div class="layout_simple block<?php echo $this->class; ?>">
<?php if ($this->date): ?><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php endif; ?><?php echo $this->linkHeadline; ?>
</div>
produces
Code:
<div class="layout_simple block first even">
06.10.2015<br><a href="index.php/news/this-is-a-text-headline" title="Full article">This-is-a-text-headline</a>
</div>
So, I guess I have to find way to manipulate with $this->linkHeadline depending of variable $GLOBALS[TL_LANGUAGE].
But on another hand, I am thinking it could be more easier to introduce one new session variable without the second tree, and change the news templates?!
Code:
if $SpecVariable='sr-lat' echo function_cyr2lat($this->text) else $this->text
Bookmarks