wrong url in breadcrumb

More
7 years 7 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
Attachments:

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

More
7 years 7 months ago - 7 years 7 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: 7 years 7 months ago by Miken.

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

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

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

More
7 years 7 months ago #63897 by Miken
Replied by Miken on topic wrong url in breadcrumb

ggppdk wrote: 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


Hi

Yes, I understand that.
but!
- Show multiple levels of subcategories can be used only as a DIRECTORY
- In router.php file has at least one error
Code:
static $view_varnames = array(FLEXI_ITEMVIEW=>'id', 'category'=>'cid', 'tags'=>'id', 'flexicontent'=>'rootcatid');

rootcatid need change in rootcat

Flexicontent 3.1.1 & Joomla 3.7.1

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.284 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