Is it possible to invoke breadcrumbs in contemplate?
Right now I have all of the elements of my node managed by contemplate (title, post date, author, body, tags, etc) but the one thing that is still being managed by my theme (in page.tpl.php of course) is the call for breadcrumbs.
I tried using <?php print $breadcrumb; ?> but it didn't work.
Is there any way to do this with contemplate?
Comments
Comment #1
bradleyvance commentedComment #3
jrglasgow commenteduse drupal_get_breadcrumb() to get the breadcrumb, to set the breadcrumb you would use drupal_set_breadcrumb()
Comment #4
bradleyvance commentedPlease pardon my ignorance, and thank you for your fast reply, but how would I use this in Content Template? I tried using
<?php print drupal_get_breadcrumb() ?>, but that just gave me the text "Array"I also tried pasting the code from the linked page
but that gave me a fatal error and forced me to delete the template.
My humble thanks in advance.
Comment #5
feuillet commentedIs there no solution to display the actual breadcrumb inside contemplate?
Comment #6
jrglasgow commenteddrupal_get_breadcrumb() returns a list of breadcrumb items in the form of an array.
To display the breadcrumb:
Comment #7
feuillet commentedWorks great, thanks!
Comment #8
jrglasgow commented