Sidebar in Joomla

BerlinChrl

Joined: 2009-07-27
Posts: 3
Posted: Tue, 2009-07-28 06:03

Hi,

I want to integrate the Gallery 2 in Joomla 1.5. Everything went well but when I tried to integrate the sidebar I couldn't start the gallery anymore. When I click on the menu I get a blank page. What did I do wrong?

Thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-07-28 11:10

Did you use one of the joomla integrations? or on your own?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
BerlinChrl

Joined: 2009-07-27
Posts: 3
Posted: Tue, 2009-07-28 13:45

No, I used one of the joomla integrations

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2009-07-28 20:40

Could you be more vague?

Well, for you to be able to show the sidebarblocks outside of gallery you must first disable gallery's own:
$gallery->setConfig('showSidebarBlocks', false);
and then use the html returned from GalleryEmbed::handleRequest(); like so:

$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
    exit;
}
GalleryEmbed::done();

//Show the sidebarblocks
foreach($g2data['sidebarBlocksHtml'] as $snippet){
    echo $snippet;
} 

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2