calling gallery blocks from mambo
dsawchuk
Joined: 2005-01-22
Posts: 84 |
Posted: Tue, 2005-08-30 08:10 |
I have G2 embedded in mambo and working well. I've looked around and I can't seem to find detailed information on how to call a G2 block from mambo. The most information I can find is in this thread, but valiant's post there doesn't give me quite enough info on how to do what I want. Basically I would like to be able to call the albumselect block from mambo on pages that are not displaying any other gallery content. I would like to have it as a menu on these pages even when you are browsing other portions of the site. I need a bit more than, "call GalleryEmbed::init". I know I have to place my code either in a mambo module or in a template, but I really don't know what that code should be. Would anyone be willing to give some advice on this? |
|
Posts: 430
dsawchuk,
Look at the second page of the main mambo threath there is album tree module we talk about, try getting the latest version of that one and use it as guidens to your module.
further here are the docs for gallery2:
Docs
regards,
Michiel
Posts: 84
Sorry, but I can't find the module you're talking about.
And even if I could, I don't know that would be able to figure out the code from it. I think I need to know, first of all, what the code would look like to call the block. I don't even know if it would be smarty, php, something else or what.
Int he thread I linked above, valiant says "you'll have to call GalleryEmbed::init" but I have no idea how to do this (or what the next step would be after that, frankly).
Posts: 430
hi,
you can see how it works
here is the link:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=download&id=1358
regards,
Michiel
Posts: 84
This is close to what I want it to do. I just want the same album select menu block as in G2 to be available to mambo on pages where G2 is not present.
I guess calling that block isn't as simple as I was hoping yet...