[SOLVED] Joomla Breadcrumbs - Repeat category

More
13 years 2 hours ago - 12 years 11 months ago #20632 by Myl
I have another issue, this time with Joomla breadcrumbs.

I have a main menu item:
name: Products
type: FLEXIContent » Directory

I have a sub-menu item of Products
name: Category1
type: FLEXIContent » Category

And I have some products in Category 1.

When I click on Products breadcrumbs is correct:
Home > Products

When I click on Category1 breadcrumbs do something strange:
Home > Products > Category 1 > Products > Category 1
[Instead of: Home > Products > Category 1]

And when i click on a single product:
Home > Products > Category 1 > Products > Products name
[Instead of: Home > Products > Category 1 > Products name]

I've set all the produsts' "category" and the "set primary" as Category 1.

How can I do a better breadcrumb?
What's wrong?

[I use Joomla 1.7 and the last release of Flexicontent (v2.0 RC1 r967)]

Thanks a lot

Myl
Last edit: 12 years 11 months ago by Myl.

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

More
13 years 33 minutes ago #20635 by ggppdk
Yes breadcrumbs is a know issue.

No foolproof way to fix, the one way we can fix is by COMPLETELY emptying the breadcrumbs and rebuilding it. Not so difficult now, i have done some research already, but this will be examined in v1.5.7 / v2.1

You have a issue in the bug tracker ...

And also read the relevant thread here:
www.flexicontent.org/forum/index ... pic#p19444

And a workaround here:
www.flexicontent.org/forum/index ... pic#p14178

Regards


-- 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
12 years 11 months ago #20760 by Myl
Thankyou,
In you're link I found a solution that is good for me.

Myl

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

More
12 years 11 months ago #20764 by micker
can you edit your title post and add [solved] thanks

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 10 months ago #21632 by Myl
I still had problems with duplicated category in breadcrumb module in the single product page.

For the moment I use this code in helper.php file in /modules/mod_breadcrumbs.
Code:
for($m = 0;$m < $count; $m ++){ if(($m != $i)&&($items[$i]->name == $items[$m]->name)){ unset($items[$m]); array_unshift($items, $items[$m]); } }

I put it on line 25, after this:
$items[$i]->link = JRoute::_($items[$i]->link);

This code checks if there are two items with the same name. If there are douplicated names the second one is deleted from the $items array.

[I know that isn't the best way to solve this problems but maybe will be helpfull for someone else.]

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

More
12 years 10 months ago #21634 by ggppdk
mmm, have given some thought of it and have written some too,

Behavior 1:

I have code to empty all pathway and set it to be the FLEXIcontent category path leading to the item:

Home->TopCat1->SubCat1->SubCat2->SubCat3->Item1

Behavior 2:

Then someone may want to use the menu item structure (the joomla default behavior)

- In this case we could check if the last item in the pathway points to current item or to current category and if so we will not add current category or current item **,

In order for this to be flexible we will need to add this a new global parameter for choosing between the 2 behaviors and also allow override of this parameter in
- category parameters
- item type parameters
- item parameters

I hope to implement this solution soon, so that it is in final version.

Regards



** Implications: that make behavior 2 a little more complex than this, e.g. if the current item does not have menu item pointing to it
a. then the menu item pointing to current category (as define in the URL) is used,
b. but if this does not exist then any other menu item pointing to any category of the item is used

In case b the current category of the item must not be added to the pathway because it will look like it is a subcategory of another category of the item, so maybe never append the current category to the pathway, and append the item title only if current menu item is not pointing to the current FLEXIcontent 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.430 seconds
Save
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