Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Base Item not working

Base Item not working 25 Dec 2017 03:07 #46445

Hello!
I love this extension, but I found a bug that is really annoying.

The base item selection is not working as it should. As I understand, the base item should show only the marked items on the selected pages. But instead, it shows the selected marked items plus the items relative the active page.

For instance, this is a a menu from a site I've made: (vivacitas.com.br)

SERVIÇOS (parent - this is set as base item and start level 2. It shows this menu at all pages, that is ok)
- Coaching
- Consultoria
- Gestão de Pessoas
- Recrutamento e Seleção
- Treinamentos e Programas
- Mapa Sistêmico

BLOG (parent)
- Carreira
- Consultoria e Treinamentos
- Conflito de Gerações
- Etiqueta Empresarial
- Desenvolvimento de Equipes

Now, if I visit the "Coaching" page, under SERVICOS, the result is correct. The menu shows only the links under SERVICOS.
But, when I visit a page that is under BLOG, it show both the items under SERVICOS and BLOG.

If I visit the page "Carreira" this is what the menu shows:
- Coaching
- Consultoria
- Gestão de Pessoas
- Recrutamento e Seleção
- Treinamentos e Programas
- Mapa Sistêmico
- Carreira
- Consultoria e Treinamentos
- Conflito de Gerações
- Etiqueta Empresarial
- Desenvolvimento de Equipes

It just adds the current page relatives to the menu.

Can you help me figure this out?
Thanks.
Fernando

Please Log in or Create an account to join the conversation.

Base Item not working 25 Dec 2017 07:55 #46447

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 19418
  • Karma: 411
  • Thank you received: 2487
Hi
if you use a native joomla menu module, do you have the same behavior or not ?
CEd

Please Log in or Create an account to join the conversation.

Joomlack Webmaster and Developer

Base Item not working 03 Jan 2018 12:28 #46500

No. With the native joomla menu module it works correctly.

Please Log in or Create an account to join the conversation.

Base Item not working 04 Jan 2018 08:19 #46504

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 19418
  • Karma: 411
  • Thank you received: 2487
please remind me next week, I will check that

Please Log in or Create an account to join the conversation.

Joomlack Webmaster and Developer

Base Item not working 11 Jan 2018 00:30 #46598

Hello CEd, just reminding you about this problem.

Please Log in or Create an account to join the conversation.

Base Item not working 22 Jan 2018 10:49 #46727

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 19418
  • Karma: 411
  • Thank you received: 2487
Hi
please edit the file modules/mod_accordeonck/helper.php
line 49 to 60
if (($start && $start > $item->level) 
					|| ($end && $item->level > $end) 
					|| (!$showAll && $item->level > 1 
						&& (!in_array($item->parent_id, $path) && !in_array($item->parent_id, $pathActive))
					)
						//|| ($maxdepth && $item->level > $maxdepth)
					|| ($start > 1 && !in_array($item->tree[$start - 2], $path)
						&& $start > 1 && !in_array($item->tree[$start - 2], $pathActive))
				) {
					unset($items[$i]);
					continue;
				}
replace it with
if (($start && $start > $item->level)
						|| ($end && $item->level > $end)
						|| (!$showAll && $item->level > 1 && !in_array($item->parent_id, $path))
						|| ($start > 1 && !in_array($item->tree[$start - 2], $path)))
					{
						unset($items[$i]);
						continue;
					}

then check if it works

Please Log in or Create an account to join the conversation.

Joomlack Webmaster and Developer
Last Edit: by ced1870.
  • Page:
  • 1
Time to create page: 0.193 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 753 guests and no members online