How default menuitem works?

More
11 years 6 months ago - 11 years 4 months ago #42944 by jrodgar
Here is my case:

I have a flexicontent directory menuitem called "something". It has a module assigned, a menu.

The url:
h##p://domain.com/index.php/whatever/something

I select a category from that directory. The urL:
h##p://domain.com/index.php/whatever/something/26-some-category

It still have the module

But if I select a item on this category, I get this url, and no module assigned
h##p://domain.com/index.php/site_content/26-some-category/43-some-item

Interesting enough, if I go to
h##p://domain.com/index.php/whatever/something/26-some-category/43-some-item
I get the module assigned


So.... in short, the last one is the desired behaviour. What documention could I read to get that?

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 11 years 4 months ago by kenmcd. Reason: made the example URLs visible

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

More
11 years 6 months ago #42953 by ggppdk
Replied by ggppdk on topic How default menuitem works?
Hello

the default menu item is what popup description says, it is used when a more appropriate menu item can not be found

e.g. for item it will be used:
-1- menu item pointing to item and to current (URL variable) category
-2- menu item pointing to item and to item main category
-3- menu item pointing to item and to any item category
-4- menu item pointing to item
-5*- use current menu item (if current menu item is any type FLEXIcontent menu item)
-6- default menu item

NOTE some menu item WILL BE SKIPPED if
- unpublished
- have different language or any parent menu item of different language
- have a non-assigned ACCESS Level or any parent menu item of such a level


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 6 months ago #43026 by jrodgar
Replied by jrodgar on topic How default menuitem works?
Mmm for your description I have to understand that it won´t search for menu items pointing to directory views where my category appears? Maybe that´s the problem

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
11 years 6 months ago #43415 by jrodgar
Replied by jrodgar on topic How default menuitem works?
So... it´s there a way to manage this when we are using directory views instead of category views?

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
11 years 6 months ago #43423 by ggppdk
Replied by ggppdk on topic How default menuitem works?
Hello

-- yes exactly the directory menu items will not be searched
... category menu items are searched and then the default menu item is used


-- but i guess what you describe is a more proper behavior, by searching the directory menu items a more menu more appropriate than the default menu item will be found


In file
components/com_flexicontent/helpers/route.php
After
Code:
} else if ($menuitem = FlexicontentHelperRoute::_findCategory($needles, $urlvars)) { $link .= '&Itemid='.$menuitem->id;

we need to implement and add a search for directory menu items
Code:
} else if ($menuitem = FlexicontentHelperRoute::_findDirectory($needles)) { $link .= '&Itemid='.$menuitem->id;

note the FlexicontentHelperRoute::_findDirectory() does not exist yet,


-- i have added the above as an empty function returning false, to implement this later, this is rather little work and no language strings are needed either

... will test this, it should create no problems, (just will break module assignments of existing sites, since (rare case) the default menuitem will no longer be chosen if a directory menu item is located that has this category e.g. as parent ...)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 6 months ago #43427 by jrodgar
Replied by jrodgar on topic How default menuitem works?
Good to know! :D thanks!

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.735 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save