| Author |
Message |
chymmylt
Beginner


Joined: Dec 01, 2003 Posts: 7
|
Posted: Thu Jun 22, 2006 5:18 pm Post subject: Relocating Breadcrumb or OpenTable(); |
|
|
I have a site which has a standard breadcrumb setup throughout the site. I've figured out how to edit the breadcrumb to make it appear consistant with the rest of the site however I'm having trouble figuring out how to relocate it.
Basically throughout the site I have:
OpenTable2();
Breadcrumb
ClosetTable2();
OpenTable();
Page Contenet
CloseTable();
I've found in the index.php at the end of the file where it makes the OpenTable() CloseTable() calls but the breadcrumb call is within the theme. Is there an easy way to make a call to the breadcrumb from within the index.php (then I'd simply remove the redundant code from the theme) or to move the OpenTable() CloseTable() calls to within the theme?
Thanks!
Chym |
|
| Back to top |
|
|
AdBot
|
| Post subject: Relocating Breadcrumb or OpenTable(); |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Jun 23, 2006 9:42 am Post subject: Re: Relocating Breadcrumb or OpenTable(); |
|
|
| G2 separates content from presentation via the use of templates (much like phpBB does). i don't think there is any way to do what you want, unless you remove the breadcrumb code from the g2 template, and add it into the index.php in the manner which you described above. |
|
| Back to top |
|
|
chymmylt
Beginner


Joined: Dec 01, 2003 Posts: 7
|
Posted: Fri Jun 23, 2006 3:02 pm Post subject: Re: Relocating Breadcrumb or OpenTable(); |
|
|
That's what I guessed. I'm fairly decent at hacking about at php but Gallery seems to use calls I'm not familiar with. The line of code in the theme that calls the bread crumb is:
{g->block type="core.BreadCrumb"}
But I can't just drop that into the index.php - is there a simple bit of code to make that work in the index or would it be terribly difficult to call from the index.php?
Thanks again! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Jun 24, 2006 8:35 am Post subject: Re: Relocating Breadcrumb or OpenTable(); |
|
|
| that would be what you delete from the template. as for adding in the g2 breadcrumb trail (beyond a simple "Gallery" crumb), would require some extensive tinkering (namely, figuring out what the album/photo name is to display in the trail). |
|
| Back to top |
|
|
chymmylt
Beginner


Joined: Dec 01, 2003 Posts: 7
|
Posted: Sat Jun 24, 2006 2:42 pm Post subject: Re: Relocating Breadcrumb or OpenTable(); |
|
|
That's what I was figuring - just didn't know if there was a simple trick to call the breadcrumb that I was just missing and figured I'd ask before trying to hack together some ugly code when there was perfectly good code pre-existing
Thanks for confirmin - let the hacking begin (just then, a million coders shudder) |
|
| Back to top |
|
|
|
|
|
|
|