Links to Coppermine functions on pages in other diretory Links to Coppermine functions on pages in other diretory
 

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

Main Menu

Links to Coppermine functions on pages in other diretory

Started by Joe Belmaati, April 15, 2004, 09:45:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Joe Belmaati

First, apologies if this has been covered before. I have tried to search for topics but failed to turn up anything.

My question is this:

I am trying to create a menu tree that will be echo'ed throughout my site

EXAMPLE

However, many functions in Coppermine depend on who is browsing the pages (eg. different content for site admin, individual members, non members etc)

In the past I have simply put links like {MY_GAL_TGT} in a menu tree that I had places in templates>default>theme.php and this works perfectly, presumably because the link calls a function that is placed in that php-file.

I am trying to put all the Coppermine functions into my menu tree and if I am calling for instance {MY_GAL_TGT} from a different directory than Coppermine (/gallery/) the link is obviously not correct.

So, is there any way to add a directory specification to the {MY_GAL_TGT} link?

A thousand thank yous in advance!!

Best,
Joe Belmaati
Copenhagen Dernmak

Joachim Müller

Joe, this is simply not the way coppermine themes work - like it or not. The stuff in curly braces are just placeholders that are being replaced when the output is being generated - you can't use php includes or other methods or "code insertion" and dynamically use the stuff within the curly braces.
I'm sorry, but I think you'll have to go for another option if you need closer integration.

GauGau

Joe Belmaati