Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Menu items associations are missed
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Menu items associations are missed

Menu items associations are missed 9 years, 2 months ago #46784

  • Denitz
I have multilingual website and 'Menu Associations' are enabled in JoomSEF settings, but there are no associations options in menu and articles managers.

Re: Menu items associations are missed 8 years, 12 months ago #47186

I also need this feature.
Is it possible?

Thanks

Re: Menu items associations are missed 8 years, 12 months ago #47192

  • Denitz
I created simple system plugin to make it work (plugin should be ordered before artio system plugin):

 
<?php
defined('_JEXEC') or die;
 
// Own class - should be enabled because Artio JoomSEF fails and native Language Filter plugin is not enabled as required by Artio.
class JLanguageMultilang
{
public static function isEnabled()
{
return true;
}
}
 
class PlgSystemArtiofix extends JPlugin
{
public function onAfterInitialise()
{
$app = JFactory::getApplication();
 
// Not for Artio
if (isset($_GET['option']) && $_GET['option'] == 'com_sef')
{
return;
}
 
// Init associations, Artio JoomSEF fails and native Language Filter plugin is not enabled as required by Artio.
$app->item_associations = 1;
 
// We need to inject Language Filter instance, so JLanguageAssociations::isEnabled() will not fail.
$prop = new ReflectionProperty('JPluginHelper', 'plugins');
$prop->setAccessible(true);
 
$plugins = $prop->getValue();
 
$plugins[] = (object) array(
'type' => 'system',
'name' => 'languagefilter',
'params' => '{"item_associations":"1"}',
);
 
$prop->setValue($plugins);
}
}
 

Re: Menu items associations are missed 8 years, 12 months ago #47194

Hi Denitz,

Does it also work for article associations?

Thanks

Re: Menu items associations are missed 8 years, 12 months ago #47195

  • Denitz
Yes, it works for all native Joomla associations: articles and menu items.

Re: Menu items associations are missed 8 years, 11 months ago #47214

It worked like a charm Denitz!
Thank you very much for sharing!

Cheers,
  • Page:
  • 1
User Login Empty