Wednesday 09 July 2003 5:51:05 am - 1 reply
Modified on Wednesday 09 July 2003 6:01:43 am by Selmah Maxim
Selmah Maxim
Wednesday 09 July 2003 7:59:23 am
again answered to my self :)
I slove it by editing content/edit.php ..
here is the code .. maybe will be helpful for some1, or maybe have better idea :
$UserClassID = $ini->variable( 'UserSettings', 'UserClassID' ) ; if($classID == $UserClassID) { $CurrentLanguage = eZContentObject::defaultLanguage(); $ObjLang=$obj->CurrentLanguage; $versionObj=$obj->attribute('current'); $version=$versionObj->attribute( "version" ); if($CurrentLanguage !=$ObjLang) { $Site = $ini->variable( 'SiteSettings', 'SiteURL' ) ; $RdSite= "http://".$Site."index.php/".$ObjLang."/content/edit/".$ObjectID."/"; echo "<meta http-equiv='refresh' content='0;URL=$RdSite'>"; return EZ_MODULE_HOOK_STATUS_CANCEL_RUN; }}
You must be logged in to post messages in this topic!