#1 2012-08-19 19:58:18

kajinek
Member
2012-06-05
34

Unique page titles

Hi guys, I have a proposal for adding a new feature to Piwigo. What about adding a possibility to set a unique title and a page banner for each page? I think It's good for people and search engines as well. Now I do it by editing the source code every time I add a new album which is not very user friendly.

Offline

 

#2 2012-08-20 02:49:15

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
159

Re: Unique page titles

Already done.  Create a "perma-link" with a descriptive title. 

- Geoff

Offline

 

#3 2012-08-20 08:34:27

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7283

Re: Unique page titles

Hi :)

Have you test [extension by ddtddt] Title


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2012-08-20 09:27:16

kajinek
Member
2012-06-05
34

Re: Unique page titles

Hi, thanks for your replies. I've tried this extension. But it can change the title only on several predefined pages, can't it? I need to change mainly album pages and I didn't find out how to do it by using this plugin.

I also use the permanent links, but I'm not sure it will solve my problem.

To make sure we speak about the same thing I attached a picture where you can see parts which should be different for each album page. Or you can have a look at http://www.podkolenka.cz. Unfortunately, not all albums have been adjusted yet, so sometimes the titles and headings are the same.

Last edited by kajinek (2012-08-20 09:35:44)

Offline

 

#5 2012-08-20 10:00:22

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7283

Re: Unique page titles

Hi :-)

when plugin title is actif, you can test make template modele to header.tpl

Search

<div id="theHeader">{$PAGE_BANNER}</div>

and remplace by

<div id="theHeader">{$PAGE_BANNER}{$PERSO_TITLE}</div>
or
<div id="theHeader">{$PERSO_TITLE}</div>


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2012-08-20 12:34:39

kajinek
Member
2012-06-05
34

Re: Unique page titles

I'm afraid it's still not what I need. Plugin Title can't change the album titles (as far as I know). It changes only the title of pages like Comments, About Gallery, etc.

I want to have a unique page title and a page heading of the album pages (a title and a heading can be different within one page). I have done this by editing header.tpl like this:

Code:

     {if         ($PAGE_TITLE=='Homepage / Category / Album1')}<title>Title of album1</title>
       {elseif ($PAGE_TITLE=='Homepage / Category / Album2')}<title>title of Album2</title>
       {else}<title>{$PAGE_TITLE} - {$GALLERY_TITLE}</title>
     {/if}

and

Code:

  <div id="theHeader">
     {if       ($PAGE_TITLE=='Homepage / Category / Album1')}<h1>Album1 Heading</h1><h2>Album1 Subtitle</h2>
       {elseif ($PAGE_TITLE=='Homepage / Category / Album2')}<h1>Album2 Heading</h1>
       {else}<h1>Default Heading</h1><h2>Default Subtitle</h2>
     {/if}  
  </div>

So my suggestion was to allow to set an album title and a heading from admin interface. But never mind, I don't create new albums so often and it's not such a big problem to change source code time to time :-)

Thanks anyway

Offline

 

#7 2012-08-20 13:36:43

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7283

Re: Unique page titles

an idea for a plugin name?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#8 2012-08-20 13:53:26

pewe
Member
2012-03-16
439

Re: Unique page titles

Name? How about:

'Individual Page Titles'

Offline

 

#9 2012-08-20 16:07:38

kajinek
Member
2012-06-05
34

Re: Unique page titles

What about adding described features to the Title plugin?

Offline

 

#10 2012-08-20 16:28:52

kajinek
Member
2012-06-05
34

Re: Unique page titles

Or it would probably be better to enter titles and headings on the same page where you edit the album name and its description. So you are right, it should be a new plugin.

I can't find a suitable name right now. But Pewe's suggestion is not bad.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact