You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-04-07 18:44:56

andreabenini
Member
Registered: 2009-04-07
Posts: 3

Howto customize layout, pages, headers and footers ?

Hello to everyone,
I'd like to customize GLPI layout a little bit, for example I'd like to add some information in the top and in the bottom of the page. While reading previous posts I've seen I've to write code on my own, it's not a problem but I'd like to ask to moderators and coders which is the right way to add code to the project.
By using the "suggested" way I'll upgrade the code easily between releases and even understand the internals of this beautiful project.
Is there a way to add code in "a standard way" ?
For example I've seen function named "commonFooter()" everywhere but not declared anywhere, is there a place where I can define it ? I think customization it's quite important and maybe users from the forum can learn something too

Hope it helps
Cheers

Andrea (Ben) Benini


Andrea (Ben) Benini

Offline

#2 2009-04-08 17:04:49

maltyx
Member
Registered: 2009-03-26
Posts: 90

Re: Howto customize layout, pages, headers and footers ?

And I would like to know is there any standard way to change page layout to right-to-left page direction?
Thanx

Michael

Offline

#3 2009-04-08 19:42:27

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Howto customize layout, pages, headers and footers ?

did you have a look in inc/display.function.php ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#4 2009-04-09 10:34:09

andreabenini
Member
Registered: 2009-04-07
Posts: 3

Re: Howto customize layout, pages, headers and footers ?

Ok thanks,
I've just imported the whole GLPI into a brand new eclipse php project and I'll look for it.
To avoid massive changes outside from SVN I'll put somewhere few injection code points so it could be portable through releases. I've also seen plugins directory, maybe I could try to make GLPI skinnable so major changes are maded easily (like drupal and friends)

Andrea (Ben) Benini


Andrea (Ben) Benini

Offline

#5 2009-04-09 19:08:41

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Howto customize layout, pages, headers and footers ?

Drupal is a CMS so it's normal that it use templating system...


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

Board footer

Powered by FluxBB