wrong url in breadcrumb

More
9 years 5 months ago - 9 years 5 months ago #63822 by Miken
FLEXIcontent 3.1.0-rc2 and FLEXIcontent 3.1.0-rc
There is a multilevel directory.
start link
http://www./catalog

All links in the body of the page is correct and working, but no reference in breadcrumbs

if automatic pathways are enabled
==============================================
<div class = "breadcrumb">
<a href="/" class="pathway">Главная</a> &gt;
<a href="/content_page/8-katalog-produktsii" class="pathway">Каталог продукции</a> &gt;
<a href="/catalog/gorno-shakhtnoe-oborudovanie" class="pathway">Горно – шахтное оборудование:</a> &gt;
<span>Вагонетки</span>
</div>
================================================

if automatic pathways are disabled
===============================================
<div class = "breadcrumb">
<a href="/" class="pathway">Главная</a> &gt;
<a href="/catalog" class="pathway">Каталог продукции</a> &gt;
<a href="/catalog/gorno-shakhtnoe-oborudovanie" class="pathway">Горно – шахтное оборудование</a> &gt;
<a href="/catalog/gorno-shakhtnoe-oborudovanie/vagonetki" class="pathway">Вагонетки</a> &gt;
<a href="/content_page/8-katalog-produktsii" class="pathway">Каталог продукции</a> &gt;
<a href="/catalog/gorno-shakhtnoe-oborudovanie" class="pathway">Горно – шахтное оборудование:</a> &gt;
<span>Вагонетки</span>
</div>
===============================================

How to fix?

if disable SEF: /index.php?option=com_flexicontent&view=flexicontent&rootcat=8&Itemid=119

Link to site
Warning: Spoiler!

Flexicontent 3.1.1 & Joomla 3.7.1
Last edit: 9 years 5 months ago by Miken.

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

More
9 years 5 months ago #63831 by Miken
Replied by Miken on topic wrong url in breadcrumb
add:

If menu item: Categories Display multiple categories (items and category info) = wrong bredcrumb
if menu item: Directory Display categories and their subcategories = wrong bredcrumb

if menu item: Category Display a category (items and category info) = correctly bredcrumb

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
9 years 5 months ago #63833 by ggppdk
Replied by ggppdk on topic wrong url in breadcrumb
Hello

i see the 1st URL of the path is not best choice,
and this is when using "directory" menu type

i ll check the routing code


-- 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
9 years 5 months ago #63840 by ggppdk
Replied by ggppdk on topic wrong url in breadcrumb
Hello

what is the language of the menu item with alias ?:
/catalog/


-- 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
9 years 5 months ago #63842 by Miken
Replied by Miken on topic wrong url in breadcrumb
Settings


Flexicontent 3.1.1 & Joomla 3.7.1

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

More
9 years 5 months ago #63843 by ggppdk
Replied by ggppdk on topic wrong url in breadcrumb
Hello

can you change the menu item to be of type "category"


-- 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
9 years 5 months ago #63844 by Miken
Replied by Miken on topic wrong url in breadcrumb

ggppdk wrote: Hello

can you change the menu item to be of type "category"


I can change. But the appearance of the page should be as if the template directory

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
9 years 5 months ago - 9 years 5 months ago #63875 by Miken
Replied by Miken on topic wrong url in breadcrumb
And so the problem of searching led to router.php

github.com/FLEXIcontent/flexicontent-cck...pers/route.php#L1101
change:
Code:
static $view_varnames = array(FLEXI_ITEMVIEW=>'id', 'category'=>'cid', 'tags'=>'id', 'flexicontent'=>'rootcat');

After this menu item is associated with rootcat was found.

Our breadcrumbs are better
Code:
<div class = "breadcrumb"> <a href="/" class="pathway">Главная</a> &gt; <a href="/catalog/catalog/8-katalog-produktsii" class="pathway">Каталог продукции</a> &gt; <a href="/catalog/zheleznodorozhnoe-oborudovanie" class="pathway">Железнодорожное оборудование</a> &gt; <span>Погрузочно-разгрузочное оборудование</span> </div>

But it is still not right. We are looking for more

Flexicontent 3.1.1 & Joomla 3.7.1
Last edit: 9 years 5 months ago by Miken.

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

More
9 years 5 months ago #63876 by Miken
Replied by Miken on topic wrong url in breadcrumb
Next:

github.com/FLEXIcontent/flexicontent-cck...lpers/route.php#L620
Code:
if ( $menuitem->query['view'] == 'flexicontent' ) { $link = str_replace('view=category', 'view=flexicontent', $link); $link = str_replace('cid=', 'rootcat=', $link); }

Change:
Code:
if ( $menuitem->query['view'] == 'flexicontent' ) { $link = str_replace('view=category', 'view=flexicontent', $link); $link = str_replace('cid=', 'rootcat=', $link); $str=strpos($link, ":"); $link=substr($link, 0, $str); $link .= '&Itemid='.$Itemid; }

Bread crumbs steel correct
Code:
<div class = "breadcrumb"> <a href="/" class="pathway">Главная</a> &gt; <a href="/catalog" class="pathway">Каталог продукции</a> &gt; <a href="/catalog/zheleznodorozhnoe-oborudovanie" class="pathway">Железнодорожное оборудование</a> &gt; <span>Погрузочно-разгрузочное оборудование</span> </div>

Maybe someone will come in handy

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
9 years 5 months ago #63893 by ggppdk
Replied by ggppdk on topic wrong url in breadcrumb
Hello

i will examining applying this in breadcrumb only
- your case is not be appropriate for all cases , since it uses a directory LINK when trying to create a CATEGORY VIEW link,
you understand that category link list items too, and if we use the directory view, the display will be completely different


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