Shatteredtruth
|
Drupal 6.10 Artiseer 2.1.
Breadcrumbs just not showing up. They work fine with all drupal default themes.
They do show for the home link and all navigation links in admin. all else no.
Thanks
|
|
Johnny
|
Yeah, I have this same problem. The default theme seems to contain it solely in template.php, but the for the artisteer templates the breadcrumbs can be found on drupal 6 methods and common methods. So I'm not sure how to traslate the code for artisteer.
But yeah, since it works fine for admin functions, is there something we can turn off that differentiates it from other functions?
|
|
Garry
|
You can contact support@artisteer.com with the URL and some details.
|
|
cfab
|
Yep, same here with 6.12 : breadcrumbs don't show... only "home" is showing up, other themes work fine.
Has someone solved it?
|
|
cfab
|
Well, digging in Artisteer files, I found this solution :
in Artisteer 2\Library\Data\Templates\Drupal, around line 157, replace :
<?php if (!empty($breadcrumb)) { theme('breadcrumb', $breadcrumb); } ?>
with :
<?php if (!empty($breadcrumb)) { print $breadcrumb; } ?>
If you want to have the current item, in Artisteer 2\Library\Data\Template\DrupalExport\files\common_methods.php replace the art_breadcrumb_woker function with :
/**
* Allow themable wrapping of all breadcrumbs.
*/
function art_breadcrumb_woker($breadcrumb) {
if (!empty($breadcrumb)) {
$breadcrumb[]=drupal_get_title(); // this is the current item
return '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
}
}
|
|
AlpesInfo.com
|
On the subject of breadcrumbs it would be nice to see them appear in the theme options too so that they can be easily turned off if not required.
|
|
Trevor Ulyatt
|
Dear cfab - I can see how your edit will certainly fix things but what file are you editing?
Quote cfab:
Well, digging in Artisteer files, I found this solution :
in Artisteer 2\Library\Data\Templates\Drupal, around line 157, replace :
<?php if (!empty($breadcrumb)) { theme('breadcrumb', $breadcrumb); } ?>
with :
<?php if (!empty($breadcrumb)) { print $breadcrumb; } ?>
If you want to have the current item, in Artisteer 2\Library\Data\Template\DrupalExport\files\common_methods.php replace the art_breadcrumb_woker function with :
/**
* Allow themable wrapping of all breadcrumbs.
*/
function art_breadcrumb_woker($breadcrumb) {
if (!empty($breadcrumb)) {
$breadcrumb[]=drupal_get_title(); // this is the current item
return '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
}
}
|
|
cfab
|
Sorry, I forgot the first filename... page.tpl.php and childrens (if you didn't trash it).
|
|
marcel
|
It fixes forum breadcrumbs - they are visible now... but you can't open page ocontent ther than forum itself None of other menu pages won't work. It says:
"Fatal error: [] operator not supported for strings in /home/xxx/public_html/themes/fresh/common_methods.php on line 39". Line 39 reads:
$breadcrumb[]=drupal_get_title();
Any suggestions?
|
|
marcel
|
Sorry for mistyping. It should go like that: "but you can't open page content other than forum". In other words: only forum works now.
|
|
cfab
|
Did you replace "theme('breadcrumb', $breadcrumb)" by "print($breadcrumb)"?
|
|
cfab
|
... in all page.tpl.php children pages?
|
|
marcel
|
I did, but only in one file: page.tpl.php
|
|
marcel
|
@cfab: I replaced it in all page.tpl.php pages, plus replaced the art_breadcrumb_worker function with what you suggested and now works perfectly on all pages! Thank you!
What if I wanted breadcrumbs only on forum pages? Replacing only "theme('breadcrumb', $breadcrumb)" by "print($breadcrumb)" doesn't work.
|
|
cfab
|
copy page.tpl.php to page-forum.tpl.php and do the above modification in page-forum.tpl.php only, on others pages, comment the line containing breadcrumbs if you don't want them
|
|
marcel
|
It's working now! Thank you very much
|
|
marcel
|
cfab: I still don't have breadcrumbs inside forum posts. What should I do?
Example: http://palmiarnia.info/content/palma-w-krakowie
Don't bother the weird language
|
|
mcdazz
|
I came across this as well.
It would be great if the folks behind Artisteer could fix this in their program.
Anyway, the way I got around this was to edit the common_methods.php file and adding the following line to the breadcrumbs section.
$breadcrumb[]=drupal_get_title(); // this is the current item
Now, it reads:
/**
* Allow themable wrapping of all breadcrumbs.
*/
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
$breadcrumb[]=drupal_get_title(); // this is the current item
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
}
}
I found that if I deleted the "$breadcrumb = menu_get_active_breadcrumb();" line, I would receive the "Fatal error: [] operator not supported for strings..." error message.
I didn't have to modify any additional php files - only the common_methods.php file.
I hope this helps someone else.
|
|
Aaron
|
Im having no luck with this.
Can anyone confirm working with drupal 6.13 and artisteer 2.2.0.17981
I have tried everything above, also seems the code you are all referring to as being in common_methods.php is actually in template.php now?
|
|
mcdazz
|
Hi Aaron,
Looks like Artisteer have broken it again.
I'm not sure why they won't (or refuse to) fix this, but it really is a joke.
Version 2.2.x of Artisteer has definitely moved the breadcrumbs section over to template.php.
Unfortunatley, I haven't yet determined a way of getting the breadcrumbs to work again.
If I do get it working, I'll post the method here.
|
|
mcdazz
|
PS - it might be worth everyones time to leave a comment for the creators of Artisteer and ask why they won't get breadcrumbs working for anything except the admin menu.
http://www.artisteer.com/?p=feedback
|
|
Aaron
|
I will leave feedback,
I have a client who has rasied the issue and I need to find a fix asap.. every fix I try breaks, its really doing my head in.
Aaron
|
|
Steve
|
The only things that have changed are as mentioned earlier, the breadcrumb worker function has been moved to template.php and you only need to add the actual function change from original code to the existing function. So, right after the code, "if (!empty($breadcrumb)) {"
add the following:
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
}
}
|
|
Steve
|
Be sure to include the changes to other pages which tell drupal to print the breadcrumb in this design as prior to the new release.
|
|
mcdazz
|
Ok, I've been playing around with template.php, and I've found that by adding the following:
$breadcrumb[]=drupal_get_title(); // this is the current item
my breadcrumbs are behaving just as I prefer them.
The breadcrumbs section now reads:
/**
* Allow themable wrapping of all breadcrumbs.
*/
function Test_breadcrumb($breadcrumb) {
$breadcrumb[]=drupal_get_title(); // this is the current item
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode(' | ', $breadcrumb) .'</div>';
}
}
Test is the name of my "Test" theme so that needs to be in keeping with the name of your theme.
Hopefully that will work for you.
|
|
Aaron
|
I get this error with the above code.. chaning theme to invigor8_2
Fatal error: Cannot redeclare phptemplate_preprocess_page() (previously declared in /home/invigors/public_html/sites/all/themes/invigor8_2/template.php:132) in /home/invigors/public_html/sites/all/themes/invigor8_2/drupal6_methods.php on line 25
|
|
Artisteer
|
Hello,
Thank you all.
Our developers have resolved this issue and a fix will be included in the next product update.
BTW, please feel free to report such problems directly to our support team:
http://www.artisteer.com/?p=support
Best regards,
Caitlin -
Artisteer Support.
|
|
pawi
|
i have no breadcrumbs in forum, in administer pages there are breadcrumbs, but when i try to open forum, they're not
|
|
mcdazz
|
Quote Artisteer:
Hello,
Thank you all.
Our developers have resolved this issue and a fix will be included in the next product update.
BTW, please feel free to report such problems directly to our support team:
http://www.artisteer.com/?p=support
Best regards,
Caitlin -
Artisteer Support.
Thanks Caitlin - I look forward to testing it when the new release comes out.
|
|
mcdazz
|
Quote pawi:
i have no breadcrumbs in forum, in administer pages there are breadcrumbs, but when i try to open forum, they're not
Have you tried any of the above fixes?
|
|