How default menuitem works?

More
12 years 2 months ago - 12 years 1 month 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: 12 years 1 month ago by kenmcd. Reason: made the example URLs visible

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

More
12 years 2 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 review. Thanks!

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

More
12 years 2 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
12 years 2 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
12 years 2 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 review. Thanks!

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

More
12 years 2 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.

More
12 years 1 month ago #44501 by jrodgar
Replied by jrodgar on topic How default menuitem works?
Just to help if someone found this issue, a option to fix this would be create menu items to the categories in the directory

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 1 month ago #44506 by micker
Replied by micker on topic How default menuitem works?
i already do that with hide menu .. better compatibility ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 1 month ago #44510 by jrodgar
Replied by jrodgar on topic How default menuitem works?
Thinking aloud, maybe the problem is that directory would be better as a category template or options, because now it looks like more work to mantain but a functionality not too far from the category view. IMHO

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 1 month ago #44518 by ggppdk
Replied by ggppdk on topic How default menuitem works?
Hello

you may try v2.1.3 r1837 BETA

docs.google.com/uc?export=downl ... VNJTHQ5V00

-- it has several enhancements regarding default menu item (2 out of 4 are included in r1824):
1. allows not using a default item for content types
(after you install you may re-edit/re-save the content types to re-enable (if you need it the default menu item) )

2. [bug-fix] use category from menu item for item links like /item/ that do not have menu item in their url

3. can select directory menu item for categories that do not have a menu item to themselves (directory menu item must point to the category's parent to be auto-selected)

4. can select parent category menu item for categories that do not have a direct menu item


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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