thewho88
Beginner


Joined: Jun 27, 2008 Posts: 9
|
Posted: Thu Jul 03, 2008 1:31 pm Post subject: G2-Breadcrumb in PHPBB-Navigationbar |
|
|
Hi, it's me again!
I'm intending to push the G2-Breadcrumb navigation to the PHPBB-Navigationbar. After experimenting around a little bit, i found out, that it's possible to realise that by constructing a function in GalleryEmbed.class, calling it as "GalleryEmbed::MyFunction()" in gallery2.php, expanding the existing $template->assign_vars with the variable you passed the function results to and - wooosh! - the output is available in the gallery.html-Template. Get the Template-Code that constructs the PHPBB-Navibar, insert the variable anywhere you want! Did that with the current time, worked perfect.
But... can anybody give me hint how to export the G2-Breadcrumb? Of course I know that it can be implemented in a G2-Template-File with "g->block type=core.BreadCrumb". But which class/function is called by that with which params?
All I found is a snippet in GalleryTemplateAdapter.class that's building blocks, containers, callbacks etc. Already tried to pass over a 'type' => 'core.BreadCrumb' as written in the instruction on line 774, but all it put out was, that an argument is missing.
I believe it can be managed somehow, but I'm really not used to PHP programming in the way it's exercised in G2, so can anyone give me a hint how to get a working function into GalleryEmbed.class that does this job Or is there even a simpler way I haven't thought of yet?
Would be very glad if youguys could help me again, although it's not a that dramatic problem this time  |
|