Announcement

#1 2010-08-31 12:25:09

sergix
Member
2010-08-18
24

Questions about the head

in the head:

- how do to remove "Home | " in the title?
- how do to change the description "Home" in the index?

thanks

Offline

 

#2 2010-08-31 13:17:44

LucMorizur
Member
Vienne (Isère) - France
2009-04-30
168

Re: Questions about the head

Hi ;

you can modify your language file (Admin > Plugins > LocalFiles Editor > tab "Languages"), in which you can search for the string "Home". The default of this solution is that you should do so for all languages, one after each other.

Or you can also create a template-extension : Admin > Plugins > LocalFiles Editor > tab "Templates" : create a new file based on default/header.tpl (give it any customized name, such as "my_header.tpl", and keep it saved in the default proposed folder). Once the template edited to your convenience, you activate it thanks to "Admin > Configuration > Templates" page.


Uploaded Images

Last edited by LucMorizur (2010-08-31 13:19:01)


Our gallery : Le Site à Nous (a silly name in french, but here I don't care ;-) ! )
An event, a new gallery ? Plugin Event Cats
My test gallery : Tests Piwigo de Luc
Thanksalot for this beautiful project.

Offline

 

#3 2010-09-29 10:06:39

sergix
Member
2010-08-18
24

Re: Questions about the head

thanks LucMorizur!

I see that I can edit titles and description on all pages except in the most important, and this is the index! Could you tell me if there is any solution?

thanks again

Offline

 

#4 2010-09-29 10:50:08

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

Re: Questions about the head

personal plugin

install and active localfile editor

tab 'personal plugin'

add_event_handler('loc_end_page_header', 'simptitle' );

function simptitle ()
{

global $template, $page, $title2, $conf;

$title2 = array();
$title2['page'] = $template->get_template_vars('PAGE_TITLE');

$array = explode($conf['level_separator'], $title2['page']);
$count = count($array);

if (!empty($array[$count-1]))
{
$template->assign('PAGE_TITLE', $array[$count-1]);
}}


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

 

#5 2010-09-29 12:45:33

sergix
Member
2010-08-18
24

Re: Questions about the head

I put on "main.inc.php" of Personal Plugin the code given by you, and after what should I do?

Offline

 

#6 2010-09-29 14:07:36

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

Re: Questions about the head

If you've install and active personal plugin, I must delete home on title tab.

This isn't what you wanted?


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

 

#7 2010-09-29 16:16:19

sergix
Member
2010-08-18
24

Re: Questions about the head

what I wanted is in this post..
[Forum, topic 16437] Changes in the HEAD

the indications of LucMorizur solve part of my question, the only detail and also the most important thing is that with personalize templates you can not change the index

Last edited by sergix (2010-09-29 16:16:34)

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact