Thanks! I just upgraded to 1.1.4 and that solved the default language problem.
Nice site. I see the problem. Which version of YAMS are you using?
I found a problem by the way. If you search for, say, ’project’, then the results get inserted into document in the wrong place at the top of the page.
I haven’t tried this before, but if you haven’t done so already then you might want to configure your different language AjaxSearch snippet calls to only search in the multilingual tvs corresponding to that language.
I’m aware of that problem. I have already fixed it in my local copy. Please replace your yams.plugin.inc.php file with the attached one. That should fix it (I hope)!
The new multilingual aliases is working great except for the site start document. The default alias, the norwegian alias and the english alias are all set to "athene".
I’m aware of that problem. I have already fixed it in my local copy. Please replace your yams.plugin.inc.php file with the attached one. That should fix it (I hope)!
But, would it be possible get URLs without the site root alias to work for both languages?
[!AjaxSearch? &AS_showResults=`1` &ajaxSearch=`0`, &AS_landing=`56`, &AS_showForm=`0` &language=`(yams_mname)` &withTvs=`+:pagetitle_en,longtitle_en,introtext_en,description_en,content_en` &tplResult=`SearchResultTpl`!]
[!AjaxSearch? &moreResultsPage=`56` &AS_landing=`56` &addJscript=`0` &extract=`0` &AS_showResults=`0` &ajaxSearch=`0` &language=`(yams_mname)` &tplLayout=`SearchFormTpl` &withTvs=`+:pagetitle_en,longtitle_en,introtext_en,description_en,content_en`!]
<div class="[+as.resultClass+]"> <a class="[+as.resultLinkClass+]" href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.pagetitle+]</a> [+as.descriptionShow:is=`1`:then=` <span class="[+as.descriptionClass+]">[+as.description+]</span> `+] [+as.extractShow:is=`1`:then=` <div class="[+as.extractClass+]"><p>[+as.extract+]</p></div> `+] [+as.breadcrumbsShow:is=`1`:then=` <span class="[+as.breadcrumbsClass+]">[+as.breadcrumbs+]</span> `+] </div>
....I launched a site with it this week:
- http://www.st-artgallery.com/ - This is the English version
- http://www.st-artgallery.nl/ - This is the Dutch version

When i call Wayfinder with tpl from yams...It fills blank fields.
Templates use - &from=`pagetitle` and &from=`menutitle`, and if one of this is blank...i get blank.
In Wayfinder without yams tpl - automatic choose nonblank field (from menutitle,pagetitle...)

- tasted and when I call [[BreadCrumbs]] a get empty output.
@Wild Striker
A YAMSified version of BreadCrumbs version 1.0.1 attached. Please can you test it?
- thanks for trying!
I haven’t been able to get to the bottom of the random misplaced template variable fields when viewing the tabbed document view. I too have experienced this. As far as I’m concerned, YAMS is sending ManagerManager the fields in the correct order. So, perhaps it is a bug in ManagerManager.
- GREAT! It worked just perfect! the only problem left is a placeholder [+as.extract+]. In English search [+as.extract+] display search result in 2 languages:
I haven’t yet myself tried getting AjaxSearch to work with YAMS. It seems @trulss got around the problem that AjaxSearch is outputting monolingual URLs by using ’current’ as the redirection mode. I’ll certainly try out your example when I have a chance.
If AjaxSearch outputs a document id template variable, like [+as.id+], then in your templates you could try replacing placeholders like [+as.pagetitle+] with [[YAMS? &get=`content` &from=`pagetitle` &docid=`[+as.id+]`]] and any urls by (yams_doc:[+as.id+])
[!Ditto? &parents=`10` &display=`10` &tpl=`Content_NewsList_Tpl` &orderBy=`createdon DESC` &dateFormat=`%d.%m.%Y` &extenders=`@FILE assets/modules/yams/yams.extender.inc.php` &id=`(yams_id)` &language=`(yams_mname)` &paginate=`1`!] <p class="pages">[+(yams_id)_previous+] [+(yams_id)_pages+] [+(yams_id)_next+]</p>