Hi, I use the following method for multi language approach:
http://expressionengine.com/wiki/Multi_language_site_alternative
a lot of stuff works fine, but when it comes to pagination with a different language than the default, it generates a different link
so here’s my pagination code:
(nothing fancy)
{paginate}
{if total_pages > 0}
<h1>{gv_pages_{cgv_language_code}}</h1>
{/if}
<div class="article_pagination">
<div class="pagination_left">
{if "{current_page}" == 1}<span class="pagination_deactivated link">{gv_previous_{cgv_language_code}}</span>{/if}{if previous_page}<a href="http://{auto_path}">{gv_previous_{cgv_language_code}}</a>{/if}
{gv_page_{cgv_language_code}} {current_page} | {total_pages}
</div>
<div class="pagination_right">
{if "{current_page}" == "{total_pages}"} <span class="pagination_deactivated link">{gv_next_{cgv_language_code}}</span>{/if}{if next_page} <a href="http://{auto_path}">{gv_next_{cgv_language_code}}</a>{/if}
{pagination_links}
</div>
</div>
{/paginate}without a /[language_identifier_segment] it all works out:
when I am on news and I press on next_entry it displays:
http://www.mysite.ch/news/P2
when I am on news with a different language it displays the following:
http://www.mysite.ch/newsindex.php/P2
somehow a index.php is injected?! and the language identifier is removed…
I have the same code on a different site with EE 2.3.1 and I don’t have a problem there…
I am on version 2.4
actually: where does {auto_path} gets it’s information?
thanks
stefan