I am trying to embed Gallery into a site the I have designed. I am using the API but i want to move the breadcrumbs from where they are to the location they are in the page. Is there a function or something that I can call to output the breadcrumbs? Any help would be great.
Posts: 8601
we don't yet have a GalleryEmbed API to render any block (just the specialized function for image block).. so I guess you need to remove g->block for core.BreadCrumb from your theme.tpl and instead use the $result['themeData']['parents'] data returned from GalleryEmbed::handleRequest to render the breadcrumb yourself (see modules/core/templates/blocks/BreadCrumb.tpl).
alternatively, use a regexp to pull the breadcrumb out of the $result['bodyHtml']. you can make a local BreadCrumb.tpl with some html comments at the start/end if that helps make a regexp that will reliably find the right html chunk.