Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: how to edit {title} for displayimage??  (Read 2665 times)

0 Members and 1 Guest are viewing this topic.

dk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
how to edit {title} for displayimage??
« on: June 01, 2006, 12:35:25 pm »

Hi,
Please could anyone help me in editing the title for display image page. My current gallery setup is:

Category1 -> album1 -> images

I want the display image page title (<title>foo</title>) to read:
Image title - Album name - category name

Currently it reads:
Image title - Album name - site name

I dont mind if the title remains as per the default coppermine naming convention.

Anyone? I am using the water_drop theme. Thank you in advance

DK
« Last Edit: June 01, 2006, 12:42:26 pm by dk »
Logged

dk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: how to edit {title} for displayimage??
« Reply #1 on: June 07, 2006, 03:42:03 pm »

Hiya guys?
Anyone might be able to help me out with this please?
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: how to edit {title} for displayimage??
« Reply #2 on: June 07, 2006, 04:32:37 pm »

Take a look at the theme customization for the function pageheader().  (Copy it from themes/sample/theme.php if you don't have it in your current theme.  You should make a copy of the waterdrop theme, if you plan to customize it so you have the default one available.)

If you want the {TITLE} only to be changed for displayimage.php and not other pages, use such an if statement:
Code: [Select]
if (defined('DISPLAYIMAGE_PHP')) {
In the future, please give days - ideally, up to a week - for a response.  Bumping a thread is just rude to everyone else waiting for a response and it clutters support requests.

edit: Oh, sorry, never mind.  You did give 6 days for a response.  I was looking at another thread and got confused. 
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.