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: How to create custom page with theme layout  (Read 2688 times)

0 Members and 1 Guest are viewing this topic.

orphaze

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
How to create custom page with theme layout
« on: May 10, 2006, 07:00:31 am »

I would like to create a page on my coppermine gallery called "Gear" where I can do a quick write up on what cameras I'm shooting with and such. How would I go about creating a php page that includes my current layout/theme and my html code for the write up? I have no custom headers or footers and I know how to add a custom nav link and all that good stuff, I'm just hung up on how to create the page itself.

I spent a bit of time hacking the faq.php page to accomplish this but it seemed sloppy and I really didn't understand what I was doing. I imagine there is a simple and elegant way to do this with a few lines of code (We newbies always say stuff like that don't we, but I really think it's true this time!) - I just need one of the many smart people around here to point me in the right direction ;-) Thanks!
« Last Edit: May 10, 2006, 07:36:52 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: How to create custom page with theme layout
« Reply #1 on: May 10, 2006, 07:17:16 am »

Code: [Select]
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('Gear');
?>


quick write up on what cameras I'm shooting with and such

<?php
pagefooter
(); 
?>
Logged

orphaze

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: How to create custom page with theme layout
« Reply #2 on: May 10, 2006, 07:23:46 am »

Worked perfectly - thanks!
Logged

gangavalli

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How to create custom page with theme layout
« Reply #3 on: July 16, 2006, 06:54:48 pm »

Thanks,

That helped me too. :D
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.