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!
Posts: 3236
When I do an include, I always have to give it the full path. You also seem to have a stray " in there.
Posts: 84
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.
Posts: 3236
Try something more like one of the above, of course with the correct URL or path
Posts: 84
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.
Posts: 100
Did you ever solve this issue? If so, please post solution
Posts: 84
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.