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: Add number of files to page title  (Read 3511 times)

0 Members and 1 Guest are viewing this topic.

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Add number of files to page title
« on: August 12, 2016, 10:32:18 am »

Αndré tell me how to add the number on the tag files - (n-photos)?  :)

Code: [Select]
<title>keyword</title>
<meta name="description" content="All photos on request: keyword" />

<title>keyword</title> ---> <title>keyword (n-photos)</title>
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Add number of files to page title
« Reply #1 on: August 12, 2016, 10:44:40 am »

Oh, and for the main page of the total number of photos in the gallery?
<title>Gallery name (n-photos)</title>
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Add number of files to page title
« Reply #2 on: August 12, 2016, 11:05:00 am »

As I understand it is responsible for this function {$pic_count}
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Add number of files to page title
« Reply #3 on: August 12, 2016, 01:02:53 pm »

I splitted your posts from the other thread.

So you want to add the number of files to your page title. Do you really want to display it just on the "main page" (whatever belongs to that in your definition) and on the search result pages, or in your whole gallery?
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Description of the keys
« Reply #4 on: August 12, 2016, 01:13:22 pm »

1. I want to show the total number of photo galleries in the title of the main page.

2. And I want to show the number of pictures by tag "keyword" :)

Αndré tell me how to add the number on the tag files - (n-photos)?  :)

Code: [Select]
<title>keyword</title>
<meta name="description" content="All photos on request: keyword" />

Code: [Select]
<title>keyword</title> ---> <title>keyword (n-photos)</title>
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Re: Description of the keys
« Reply #5 on: August 12, 2016, 01:14:53 pm »

Main page:
<title>Gallery name (n-photos)</title>
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Add number of files to page title
« Reply #6 on: August 12, 2016, 01:24:30 pm »

Why posted you in your old thread? I again needed to split them and merge with this thread >:(

So you don't want to show the number of files somewhere else in the page title, right?
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Add number of files to page title
« Reply #7 on: August 12, 2016, 01:29:43 pm »

Excuse me please, it's all the difficulties of translation. I do not understand :(
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Add number of files to page title
« Reply #8 on: August 22, 2016, 07:19:59 am »

Hello Andre, and you have not looked my problem? :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Add number of files to page title
« Reply #9 on: August 22, 2016, 08:23:23 pm »

I still need to know if you really want to show the number of files just on your main page and the search result page(s). I ask for this, as I want to avoid to create custom code which needs further modification as the initial request was ambiguous.
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Add number of files to page title
« Reply #10 on: August 23, 2016, 06:31:22 am »

I want to in the title displays the total number of attached maps for the entire gallery for each album separately, and keyword :)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.