- Posts: 21
- Thank you received: 0
All questions about EDocman extension
unwanted Edocman categories in Breadcrumbs
- pixpro
- Topic Author
- Offline
- Junior Member
Less
More
12 years 1 month ago - 12 years 1 month ago #21710
by pixpro
unwanted Edocman categories in Breadcrumbs was created by pixpro
I have a menu item to an Edocman category. when that item is clicked on, the entire Edocman category chain is published after the menu item in the breadcrumb module. Is there any way to stop this, I want the menu item to be the last item in the breadcrumb not Edocman category.
Everything after the first Layer 1 Muxponders is not wanted.
Everything after the first Layer 1 Muxponders is not wanted.
Last edit: 12 years 1 month ago by pixpro. Reason: no image shown
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 1 month ago #21737
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: unwanted Edocman categories in Breadcrumbs
@pixpro: Did you see my response in the support ticket ?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- pixpro
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
12 years 1 month ago #21764
by pixpro
Replied by pixpro on topic Re: unwanted Edocman categories in Breadcrumbs
yes. Thanks. but it is unfortunate that this is a hack.
Please Log in or Create an account to join the conversation.
- Dave Blakemore
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
12 years 1 month ago #21771
by Dave Blakemore
Replied by Dave Blakemore on topic Re: unwanted Edocman categories in Breadcrumbs
What was the solution..
Can we share here for others to see?
Can we share here for others to see?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 1 month ago #21795
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: unwanted Edocman categories in Breadcrumbs
Hi
The solution is editing the code alitle :
1. Open the file components/com_edocman/views/category/view.html.php
2. Find the code below and remove it (from line 80):
I will consider adding a config option for this fix in future release .
Tuan
The solution is editing the code alitle :
1. Open the file components/com_edocman/views/category/view.html.php
2. Find the code below and remove it (from line 80):
Code:
for ($i = count($parents)-1 ; $i > 0 ; $i--) {
$parent = $parents[$i] ;
if ($parent->total_children)
$pathUrl = JRoute::_('index.php?option=com_edocman&view=categories&id='.$parent->id.'&Itemid='.$Itemid);
else {
if ($parent->category_layout == 'default')
$pathUrl = JRoute::_('index.php?option=com_edocman&view=category&id='.$parent->id.'&Itemid='.$Itemid);
else
$pathUrl = JRoute::_('index.php?option=com_edocman&view=category&layout='.$parent->category_layout.'&id='.$parent->id.'&Itemid='.$Itemid);
}
$pathway->addItem($parent->title, $pathUrl);
}
I will consider adding a config option for this fix in future release .
Tuan
The following user(s) said Thank You: Dave Blakemore
Please Log in or Create an account to join the conversation.
- pixpro
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
12 years 1 month ago #21804
by pixpro
Replied by pixpro on topic Re: unwanted Edocman categories in Breadcrumbs
"I will consider adding a config option for this fix in future release ."
That would be super.
That would be super.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 1 month ago #21857
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: unwanted Edocman categories in Breadcrumbs
The config option is now added to latest download package. Just download latest version, upgrade it to your site. Then go to EDocman -> Configuration, find the config option Fix Breadcrumb issue, set it to Yes. After that, the issue will be sorted. No hack is needed anymore .
Tuan
Tuan
The following user(s) said Thank You: pixpro
Please Log in or Create an account to join the conversation.
- pixpro
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
12 years 1 month ago #21861
by pixpro
Replied by pixpro on topic Re: unwanted Edocman categories in Breadcrumbs
Awesome dude!
Please Log in or Create an account to join the conversation.
- pixpro
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
12 years 4 weeks ago #21892
by pixpro
Replied by pixpro on topic Re: unwanted Edocman categories in Breadcrumbs
Hi, I installed the update but the setting doesn't do anything.
I see the if statement is there but it still doesn't do anything.
Also, when I did the hack I included the line which is just under your if statement.
$pathway->addItem($category->title);
With this line also removed it worked correctly.
I see the if statement is there but it still doesn't do anything.
Also, when I did the hack I included the line which is just under your if statement.
$pathway->addItem($category->title);
With this line also removed it worked correctly.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 4 weeks ago #21930
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: unwanted Edocman categories in Breadcrumbs
Hi
I included this modification in latest version (which just updated few minutes ago). It should work well now (it has some nice improvements to back-end interface (using twitter bootstrap), so maybe you should consider upgrade your site to this latest version.
Tuan
I included this modification in latest version (which just updated few minutes ago). It should work well now (it has some nice improvements to back-end interface (using twitter bootstrap), so maybe you should consider upgrade your site to this latest version.
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.