Announcement

#1 2013-11-19 08:15:50

Ranjith
Guest

Remove "keyword" in title and browsepath

I want to remove the word "keyword" from the title tag and browsepath. Please let me know how.
Check the link http://bolly20.com/index/tags/4-underwater
The title tag is "Keyword underwater | Just another Piwigo gallery". I want it to be "underwater | Just another Piwigo gallery".
Browsepath is "Home / Keyword underwater [1]". I want it to be "Home / underwater [1]".

Thanks!

 

#2 2013-11-19 08:55:40

flop25
Piwigo Team
2006-07-06
7037

Re: Remove "keyword" in title and browsepath

Hello
You could use and adapt the plugin http://piwigo.org/ext/extension_view.php?eid=589 for your needs


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-11-19 09:07:48

Ranjith
Guest

Re: Remove "keyword" in title and browsepath

Thanks for the prompt reply.
I have installed that plugin. But dont know how to customize it to fit my requirement.
As my domain is not working at the moment please use this link to have a look at my tag page http://70.32.79.70/index/tags/4-underwater

 

#4 2013-11-19 10:45:25

Ranjith
Guest

Re: Remove "keyword" in title and browsepath

ok. Please tell me which PHP/tpl file has the code which adds "keyword" in title and breadcrumb.

 

#5 2013-11-19 18:36:40

flop25
Piwigo Team
2006-07-06
7037

Re: Remove "keyword" in title and browsepath

back on the computer
see http://piwigo.org/dev/browser/trunk/the … 25577#L100
You will have to create a template extension of index.tpl , then change that line to remove the <a ... > ... Keyword... </a> using a regex


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2013-11-19 20:21:23

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Remove "keyword" in title and browsepath

Ranjith wrote:

ok. Please tell me which PHP/tpl file has the code which adds "keyword" in title and breadcrumb.

http://piwigo.org/dev/browser/trunk/inc … c.php#L448

Offline

 

#7 2013-11-20 06:52:14

Ranjith
Guest

Re: Remove "keyword" in title and browsepath

rvelices wrote:

Ranjith wrote:

ok. Please tell me which PHP/tpl file has the code which adds "keyword" in title and breadcrumb.

http://piwigo.org/dev/browser/trunk/inc … c.php#L448

I cant find the word "keyword" anywhere in the code. Am I missing something? In fact I can't find word "keyword" in any file or database!

I assume the following line adds the "keyword" to title. But don't know how.

$title = '<a href="'.get_root_url().'tags.php" title="'.l10n('display available tags').'">'  . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' ). '</a> ';

FYI I dont know much PHP.

 

Board footer

Powered by FluxBB

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