No menu item on flexicontent list filter module

7 months 3 weeks ago - 7 months 3 weeks ago #72082 by bytekultur
I have a similar problem to the one mentioned here: flexicontent.org/forum/21-troubleshootin...lists-filtering.html

But instead of the wrong menu item, none is active, so my URL looks like this after filtering:
/component/flexicontent/32-categoryalias.html?cc=e0ee36c1bd7c3dc761a0d594a4b76f5f

Obviously, the filtering module is not displayed any more, as it's restricted to the menu item i would like to display the list and filter. I helped my self with an override of the filter module's tmpl output, but the URL is still a generic component URL instead of my menu item's one... Any suggestions?


***

The override I am using for now, if some one is interested:
/modules/mod_flexifilter/tmpl/default.php


I added this before the form's end tag "</form>"
<?php
$activeMenuItem = JSite::getMenu()->getActive();
$Itemid = $activeMenuItem->id;
if(empty($Itemid)){
	$Itemid = JFactory::getApplication()->input->get('Itemid');
}
?>
<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>" >

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

7 months 3 weeks ago #72096 by ggppdk
Hello

that is how URLs are created for categories when no menu item for the category or of its parent categories are a found

do this
1. For your categories create menu items for at least their top-level parent categories
2. Configure the filtering module to be assigned to the menu items you created


-- 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.

7 months 1 week ago #72216 by bytekultur
Thank you for your reply.
I know and it makes total sense for URL's for which no menu exists.

1. I have a category "news" with 3 subcategories. There also is a menu item "news" linking to the category "news". The items are stored in the subcategories, which have no menu, but I even tried making one and it didn't change anything.

2. See screenshot - that's what I assumed to be the setting, but it has no effect...
Attachments:

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

7 months 1 week ago #72225 by ggppdk
Hello

There were some fix / update regarding the categories and submit URL of the filtering module
that were made after you created this issue,
and the updated code maybe related

github.com/FLEXIcontent/flexicontent-cck...c846017cdc8fa2207a8d

Can you test in a testing copy of the web-site by installing via URL:
https://github.com/FLEXIcontent/flexicontent-cck/archive/3.2.1.x-stable.zip


-- 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
© 2018 Flexicontent. All Rights Reserved.