coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Fab on September 24, 2006, 01:54:29 AM

Title: How do I integrate a contact page to the gallery?
Post by: Fab on September 24, 2006, 01:54:29 AM
How do I integrate a contact page to the gallery?

I already know about the  Custom menu link name and  Custom menu link URL in Themes settings, my question is on the integration of the gallery Header/layout/menu on the custom page.    

I tried to make one by modifying a copy of Search.php but I don't understand what to keep and what to remove.
Also tried with a copy of template.html but while the css was there it only displayed the placeholders {GAL_NAME} {SYS_MENU} {GAL_DESCRIPTION} {SUB_MENU} etc


Title: Re: How do I integrate a contact page to the gallery?
Post by: Nibbler on September 24, 2006, 02:17:53 AM
This has been posted plenty of times already, but here it is again,


<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your page title');

// your content here

pagefooter();
?>

Title: Re: How do I integrate a contact page to the gallery?
Post by: Fab on September 24, 2006, 02:25:47 AM
Thanks a million Nibbler.
I actually spent quite sometime searching for the answer before asking.
If it's a recurring question maybe a sticky  would be a good idea.
Title: Re: How do I integrate a contact page to the gallery?
Post by: Fab on September 24, 2006, 02:34:17 AM
How should I enter the content? I get an error message with html.
Title: Re: How do I integrate a contact page to the gallery?
Post by: Nibbler on September 24, 2006, 02:35:10 AM

<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your page title');

?>

Your html content here
<?php

pagefooter
();
?>


Title: Re: How do I integrate a contact page to the gallery?
Post by: Fab on September 24, 2006, 02:39:39 AM
Wow that was a fast reply  :)

Thanks again Nibbler.
Title: Re: How do I integrate a contact page to the gallery?
Post by: Gizmo on September 24, 2006, 03:42:17 AM
If you want a contact page for people to send you info then try this post - http://forum.coppermine-gallery.net/index.php?topic=29822.0 (http://forum.coppermine-gallery.net/index.php?topic=29822.0).
Title: Re: How do I integrate a contact page to the gallery?
Post by: casperinmd on May 30, 2007, 07:30:09 PM
Just posting a few words that I feel would help others find this topic, as I missed it when looking for how to wrap my content with the header and footer from CPG. I searched on header and footer and wrap but came up short, guess integrate would have worked. Thanks