mambo/gallery breadcrumb question

dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Fri, 2005-04-01 03:00

I currently have mambo and gallery working together reasonably well thanks to the module that was posted here.

I'm now doing some customization to the site and I have a question that hopefully won't be too difficult to answer.

One thing I've noticed with the current integration of the two applications is that when you go to the embedded gallery in mambo, mambo's breadcrumbs don't work anymore; it only displays the top level page. That's not the problem, we can work around that!

What I would like to do is display the Gallery breadcrumbs in the mambo wrapper. I have a separate mambo template for the Gallery section of the site and I thought I would be able to replace the current mambo breadcrumb code:

	<div id="pathway">
		<?php mosPathWay(); ?>
	</div>

With something like this:

	<div id="pathway">
		<?php include ("gallery2/layouts/matrix/templates/pathbar.tpl"); ?>
	</div>

But this doesn't work. It shows the contents of the file instead of rendering the breadcrumb. Now, I'm not a programmer (I'm learning a lot of this as I go), so I don't really know if I have used the proper syntax or if what I am trying to do is impossible (will this file work if Gallery doesn't call it?).

Anyone have any ideas? Thanks in advance!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-04-01 03:35

When I do an include, I always have to give it the full path. You also seem to have a stray " in there.

 
dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Fri, 2005-04-01 03:42

Oops. Edited. Thanks.

That's not the problem though (the code I placed there was just an example). It's that I don't really know what the syntax should be.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-04-01 03:44
<?php include ('http://domain.com/gallery2/layouts/matrix/templates/pathbar.tpl'); ?>
<?php include ('/var/www/domain.com/gallery2/layouts/matrix/templates/pathbar.tpl'); ?>

Try something more like one of the above, of course with the correct URL or path :)

 
dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Fri, 2005-04-01 04:16

I've now tried that and I got the same result.

It looks like it's finding the file without a problem, it's just that it doesn't know what to do with it when it gets it. Instead of actually displaying the Gallery breadcrumb, it displays the contents of the pathbar.tpl file, so I just get a mess of code on the page.

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Tue, 2005-05-24 09:48

Did you ever solve this issue? If so, please post solution

 
dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Tue, 2005-05-24 23:56

Sorry, I never did solve this. I used a workaround instead. From the mambo template that holds the gallery, I removed the breadcrumb, then I positioned the gallery breadcrumb using CSS to look like the breadcrumb in the other sections of the site.

Not really what I wanted, but it seems to work.