Moving the breadcrumbs

akrug23

Joined: 2005-11-03
Posts: 2
Posted: Thu, 2007-07-19 20:26

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.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2007-08-02 22:53

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.