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?
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;
}
Posts: 8339
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
Posts: 3
No, I used one of the joomla integrations
Posts: 8339
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:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2