Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Kaki menu link  (Read 2745 times)

0 Members and 1 Guest are viewing this topic.

koffee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Kaki menu link
« 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 ;):

(http://sweb.cz/Jirulda/gal.JPG)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Kaki menu link
« Reply #1 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
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.