@Wild Striker
I haven’t customised the BreadCrumbs snippet to work with multilingual URLs yet. If I remember correctly, it’s quite a small snippet, so it should be fairly easy to do. I’ll try to post a YAMSified version in the next couple of days. I’m sure there’s a way to do breadcrumbs with Wayfinder, so an alternative approach would be to use that with YAMS templates instead.
And what’s can be the problem with my issue "with TVs in language tabs" (my post #245, see the screen).
I’m using your patch for sorting TVs. All default TVs have sorting number: (0) and my custom TVs author_quote_en/ru (10), keywords_en/ru (20) and eventdate_en/ru (30).
When I disable eventdate_en/ru everything is back to normal. What could be the reason?
$tvString = implode( ',', array_merge( $standardTVs, $customTVs ) );
$tvString = implode( ',', $standardTVs );
if ( count( $customTVs ) > 0 )
{
$tvString .= ',' . implode( ',', $customTVs );
}
Thanks a lot! I’ll be waiting for YAMS-version of BreadCrumbs.
$pretemplateCrumb .= '<a class="'.$crumbClass.'" href="'.$modx->makeUrl($c['id']).'" title="'.$title.'">'.$text.'</a>';
$pretemplateCrumb .= '<a class="'.$crumbClass.'" href="(yams_docr:'.$c['id'].')" title="'.$title.'">'.$text.'</a>';
changed and didn’t helped.
Quote from: Wild at Sep 01, 2009, 07:51 AM
And what’s can be the problem with my issue "with TVs in language tabs" (my post #245, see the screen).
I’m using your patch for sorting TVs. All default TVs have sorting number: (0) and my custom TVs author_quote_en/ru (10), keywords_en/ru (20) and eventdate_en/ru (30).
When I disable eventdate_en/ru everything is back to normal. What could be the reason?
Perhaps array_merge is not working quite as I expected with regards to ordering of array elements. Please can you try replacing line 113 of yams.mm_rules.inc.php
$tvString = implode( ',', array_merge( $standardTVs, $customTVs ) );
with
$tvString = implode( ',', $standardTVs ); if ( count( $customTVs ) > 0 ) { $tvString .= ',' . implode( ',', $customTVs ); }
to see if that fixes the problem?
Thanks.
... &withTvs=`+pagetitle_en,longtitle_en,introtext_en,description_en,content_en,alias_en,menutitle_en`...
@MediaGuy
So you have www.domain.com set up as your default language and www.domain.nl as a second language and presumably there is a mono URL too. Any request accepted by your server that doesn’t match either of those will get redirected to either default language or the current language etc. depending on your redirection settings. In this case domain.nl is not recognised and is being redirected to your default language www.domain.com.
I think you should be able to get what you want by using your .htaccess to rewrite domain.nl as www.domain.nl before any friendly URL stuff.