Original 1.0.5 has some problems with the managermanager, included in 1.0.2 Evo.
Here is (quite dirty) hack to make it work. It has to be butified, because currently it skips any version check and makes it incompatible with older versions, but at least it works
function YAMSTVDataToMMName( $name, $id )
{
global $modx;
$yams = YAMS::GetInstance();
// Work out which version of MODx we are using.
$versionData = $modx->getVersionData();
$version = $versionData[ ’version’ ];
// $full_version = $versionData[ ’full_version’ ];
if (
preg_match(
’/^(0\.|1\.0\.0\-RC1)/’ . $yams->GetEncodingModifier()
, $version
)
== 1
)
{
// old style references
/* return ’tv’
. preg_replace(
’/_/’ . $yams->GetEncodingModifier()
, ’%5F’
, $name
);
*/
return $name;
}
else
{
// new style references
// return ’tv’ . $id;
return $name;
}
@ddim
Once again, thanks for sharing!
I haven’t tried the patch myself, but yes, I guess it must be - because that is the only place where that function is defined within YAMS.
It really works, thx for sharing.
Just to confirm. This patch isn’t required if YAMS 1.1.7 alpha RC7 is used.