forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: koffee on February 10, 2005, 11:17:42 pm

Title: Kaki menu link
Post by: koffee on February 10, 2005, 11:17:42 pm
Hi, is it possible to add a link to Main menu (i know it is) but show it instead of {GALLERY}? (something like iframe?)  Picture for better imagination (high compression,with my drawing ;):

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fsweb.cz%2FJirulda%2Fgal.JPG&hash=ec530ba6de41c7c5d92d289d8dddbeed7b8dbd7d)
Title: Re: Kaki menu link
Post by: Joachim Müller on February 11, 2005, 02:47:37 pm
what is the page inside the iframe suppossed to contain? I guess you want to add a menu item to your coppermine menu that fires up a non-coppermine page with a page layout that matches the layout of your coppermine page. If this is correct, just take a look at the miniCMS hack in the mods section; this is the easiest way to accomplish what you're looking for. Fiddling with iframes is not recommended, as the technique itself has got a lot of drawbacks, so (as a workaround) you just make you non-coppermine page have the same menu structure and layout as your "regular" coppermine page. Another (even easier) workaround is to add this to your non-coppermine page:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('your title here');
?>
at the very start and
Code: [Select]
<?php
pagefooter
();
ob_end_flush();
?>
at the very bottom.
You might have to adjust your include paths to match your site structure...

Joachim