I'd like to add:
{g->block type="core.GuestPreview" class="gbBlock"}
from the photo.tpl to the sidebar.tpl. For that matter, itd be great to be able to add any chunk of code to the sidebar from the other templates.
Simply coppying it over to the sidebar.tpl does not work.
I'm using g2.0.0.1 embedded in Mambo (even though it doesn't work in the non-embedde version only). Any advice would be greatly appriciated.
Posts: 16503
Works for me when I copied that from photo.tpl to sidebar.tpl. Be sure to clear your template cache after making the change. Also be sure to use local directories if using themes shipped with G2:
/themes/<yourThemeName>/templates/local/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Ah.. clearing the cache certainly helps. Thank you!
I was was wrong in my last post. I can add {g->block type="core.GuestPreview" class="gbBlock"} to the standalone G2 site and it works fine. However, the http://dev.4theweb.nl Mambo sidebar module will not display it (this Mambo module displays the -most- of the G2 sidebar).
Any recomendations on how to get this module to display everything that is in the sidebar.tpl? Or, I suppose I should hit up the http://dev.4theweb.nl forum : )
The code for this module is simple enough and below (but I'm no dev : (
<?php
/**
* @version $Id: mod_galleryside.php, v 2.4 09/09/2005 13:43:00
* @package Mod_gallery2_side
* @copyright (C) 4 The Web
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $option, $page;
//parameters
//if galery embed is not on the page you shouldn't be here
if($option == 'com_gallery2' AND $page!='extension'){
require_once("components/com_gallery2/init.php" );
$data = core::initiatedG2('false');
$data = GalleryEmbed::handleRequest($my->username);
if (isset($data['sidebarBlocksHtml']) && !empty($data['sidebarBlocksHtml'])) {
$content = '<div id="gsSidebar" class="gcBorder1"> '.implode('', $data['sidebarBlocksHtml']).'</div>';
}
} else {
$content = 'your not on the gallery embedded page!!';
}
?>
Thanks again for your help.
- Kevin
Posts: 16503
Well it works in G2 without any 3rd party software added. So if it doesn't work when that 3rd party software is added, then I'd say the problem resides with that 3rd party software somewhere.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here