Hi @towerofbabel
My understanding of how Wayfinder works was wrong. I assumed that Wayfinder would be using all its default templates unless they are overridden by the user using &...Tpl=`...`. However, your commented out Wayfinder call demonstrates that that isn’t the case: Wayfinder is clearly not using the &hereTpl or for the selected document - . It is using your customised &rowTpl instead. I checked with the Wayfinder documentation, and for rowTpl it says:
The rowTpl template is used to output each document, folder, or weblink (unless one of the templates below is used)(I have highlighted the important bit.) There is similar extra logic for the outerTpl too, which is only overridden by the innerTpl if it is specified.
So, since the outer template doesn’t contain any YAMSified content, in general you only need to include the following parameter in your Wayfinder call to get the default behaviour:
&rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/mode/row.tpl`
where mode is replaced by doc or docr.
In your case you’ll need to use your custom rowTpl in place of the YAMS one.
Sorry for the confusion. Please let me know if this works. If so, I’ll update the YAMS documentation.
EDIT: Updated. OuterTpl is not needed.

So www.mysite.com/services works, www.mysite.com/services/something doesnt work.
Any ideas?
You’re right. It’s not documented. Should be though. It’s quite simple:
1. How do I use my own custom TVs with YAMS? Maybe I’m blind, but I couldn’t see it in the documentation anywhere.
[[YAMS? &get=`tv` &from=`mytemplatevariable`]]
Nothing major has changed with regards to parsing and document rendering between 1.0.5 beta and the latest alpha. Most of the changes have related to aliases and redirection. These changes affect how ALL aliases are dealt with, not just multilingual ones, but the existing functionality should be unaffected.
2. I am using the 1.0.5 beta. Is it worth me upgrading to the latest alpha? Should I consider the latest alpha less stable in regard to OLD features, or only new ones (multi0lingual aliases)?
3. YAMS and performance: I am noticing a performance hit with page loads, and I am not sure if it is YAMS-related or not. YAMS is the only real difference between this website and around 10 others I have at dreamhost. Any comments would be helpful.
public function DetermineCurrentLangId()
{
// Determines the current lang id
// Also initialises the select and parse lang id
if ( $this->itsMODx->insideManager() )
{
return FALSE;
}
$docId = $this->itsMODx->documentIdentifier;
// If the page has not been found then the docId can be NULL
if ( ! ctype_digit( strval( $docId ) ) )
{
// When no $docId has been set, this is because no page
// has been found... in which case
// assume that the document is the site error
// page
$docId = $this->itsMODx->config['error_page'];
// return FALSE;
}
if ( ! $this->itsUseLanguageQueryParam )
{
// First check to see if the lang has been set as a query parameter
if ( isset( $_GET[ $this->itsLangQueryParam ] ) )
{
$langId = $_GET[ $this->itsLangQueryParam ];
// This updates the cookie...
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
}
// If not, then try to determine the lang
// by checking what the headers are
// // and by checking whether its supposed to be a multilingual document
if ( $this->IsValidMultilingualRequest( $langId ) )
{
// This updates the cookie...
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
// So, either it is a monolingual document
// or an unrecognised URL
// If a language has previously been set,
// then retrieve it from the cookie
if ( isset( $_COOKIE['yams_lang'] ) )
{
$langId = $_COOKIE['yams_lang'];
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
return FALSE;
}public function DetermineCurrentLangId()
{
// Determines the current lang id
// Also initialises the select and parse lang id
if ( $this->itsMODx->insideManager() )
{
return FALSE;
}
$docId = $this->itsMODx->documentIdentifier;
// If the page has not been found then the docId can be NULL
if ( ! ctype_digit( strval( $docId ) ) )
{
// When no $docId has been set, this is because no page
// has been found... in which case
// assume that the document is the site error
// page
$docId = $this->itsMODx->config['error_page'];
// return FALSE;
}
if ( ! $this->itsUseLanguageQueryParam )
{
// First check to see if the lang has been set as a query parameter
if ( isset( $_GET[ $this->itsLangQueryParam ] ) )
{
$langId = $_GET[ $this->itsLangQueryParam ];
// This updates the cookie...
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
}
// If not, then try to determine the lang
// by checking what the headers are
// // and by checking whether its supposed to be a multilingual document
if ( $this->IsValidMultilingualRequest( $langId ) )
{
// This updates the cookie...
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
// So, either it is a monolingual document
// or an unrecognised URL
// If a language has previously been set,
// then retrieve it from the cookie
if ( isset( $_COOKIE['yams_lang'] ) )
{
$langId = $_COOKIE['yams_lang'];
$success = $this->SetCurrentLangId( $langId, $docId );
if ( $success )
{
return TRUE;
}
}
//
// current lang not active PATCH!!!!!!!
//
if (!in_array("".$this->itsCurrentLangId, $this->itsActiveLangIds)) {
$this->SetCurrentLangId($this->itsDefaultLangId,$docId );
return TRUE;
}
return FALSE;
}sudo chown -R apacheuser:apachegroup /home/skytel/domains/skyxs.nl/public_html/e-welfare/assets/modules/yams/ sudo chmod u+rw /home/skytel/domains/skyxs.nl/public_html/e-welfare/assets/modules/yams/