I have a strange issue (similar to http://drupal.org/node/1314696) which i don't really know if its a bug or i did something wrong here.
What happens:
i set up a custom node view through page manager with the following settings in breadcrumbs:
%taxonomy_term:parent
%taxonomy_term:name
%node:field_xxx
and the corresponding paths
%taxonomy_term:parent:url
%taxonomy_term:url
and the resulting trail is correct when actually there IS a parent term associated with the node. But if i have a node associated with only a root term, the result is something like:
Home » » %taxonomy_term:name » %node:field_xxx
The empty part is actually, well, empty, the html result is:
I suppose i have the right context and relations set up in the page variant, but i don't really know what's happening here.
The strangest of things is that exactly the same settings and modules in local works like a charm. This only happens with the remote site.
Already tried to disable other similar modules which i use (custom breadcrumbs and taxonomy breadcrumbs) with no change.
Comments
Comment #1
devuo commentedHello zikaelismik, I believe I fixed this with the current release 7.x-1.2 :) Please check it out and report back.
Comment #2
devuo commentedComment #3
zikaelismik commentedThanks so much devuo,
It is working now with 7.x.1.2!
Comment #4
devuo commented:)
Comment #5
devuo commentedAny other issue, bugs or ideas that fit within the scope of this module just post them!
Comment #6
mazdakaps commentedhello i am using the same settings as the first post
%taxonomy_term:parent
%taxonomy_term:name
%node:field_xxx
-parent term
--child term
when i i select from hierahical select to save lineage from the deepest term it work correct but when i set it to Save term lineage
%taxonomy_term:name which suppose to show the child term shows the parent term and there isnt any child terms and the %taxonomy_term:parent doesnt show anything.
Is this a bug or i am doing something wrong?
Thank you
Comment #7
devuo commentedTry adding a new "Custom" content-pane and enable replacement patterns to it. See if those patterns print something. You can also try to load the parent term through the "relationships" fieldset in the "Contexts" tab. Report the results
Comment #8
marikomay commentedThis issue appears to have resurfaced with 7.x-2.0. I am using panels term template and have Breadcrumbs set as followed:
Breadcrumb titles
%parent_term:name
%term:name
Breadcrumb paths:
%parent_term:url
It works as expected as long as a parent exists. If no parent exists, however, I end up with:
Home » » %term:name
Comment #9
helior commentedSo if the parent term doesn't exist, then what exactly to do you expect it to print out in the breadcrumb?
Comment #10
barwonhack commentedIn response to comment #9, ideally it would not render an empty parent term.
Category Root > first child > second child > third child
- this would ideally work alongside
Category Root > first child
- and
Category Root > first child > second child
Anyway that's my 2 cents worth!
Another option (hack) would be to move the divider to the term itself, but I can't find where to set No Divider.
Comment #11
antoinetooley commentedim getting empty breadcrumb when I use %term:name and %parent_term:name I also get this error when I am on the parent term page:
"Warning: array_shift() expects parameter 1 to be array, null given in adaptivetheme_breadcrumb() (line 87 of /home/antoinet/public_html/biotheory.co.uk/sites/all/themes/adaptivetheme/adaptivetheme/at_core/inc/theme.inc)."
Any help would be greatly appreciated as this is a really awesome module!!
Thanks
Comment #12
finex commentedSame problem after upgrading to 7.x-2.0
Comment #13
devuo commentedSorry, I've been rather busy. I will be looking at this very soon.
Comment #14
IreneV commentedInstead of %parent_term:name should be %term:parent
Comment #15
IreneV commented