Announcement

  •  » Extensions
  •  » Templating system - and making changes

#1 2008-06-10 00:17:24

carminejg3
Member
2008-05-23
35

Templating system - and making changes

Hi how does the template system work?  i was looking for some documents on this topic and havent found anything on it. 

I have spent about 6 hrs trying to turn the background of the p0w0 theme white.  And i have been trying to resize the rollover boxs that displaies the thumbnail views on the images and I cant seem to find how to do this.

Offline

 

#2 2008-06-10 08:29:28

linuxlefty
Member
China
2008-04-13
65

Re: Templating system - and making changes

The template system being used is smarty which has extensive docs (http://www.smarty.net/manual/en/) . The tricky part is knowing which template file controls which part of the gallery. In the case of p0w0, it uses the yoga template. So in template/yoga you'll find a bunch of smarty .tpl template files. These files contain HTML templates which controls the layout of the gallery. In the template/yogo/theme directory, you'll find a bunch of .css files controlling the look and feel of the gallery.


To turn the background white, open up template/yoga/theme/p0w0/theme.css file and look for the comment "/* Backgrounds Only */" It should be around line 94. Then set the background of BODY, .content, and #the_page to #FFF. If you aren't familiar with CSS, let me know and I can explain that in more detail.

About the resizing of the boxes, I'm not sure sure (I'm rather new to the PWG team). However, if you open up template/yoga/thumbnails.css and look around line 25, you should see the CSS for SPAN.wrap2. If you some padding to that CSS, you'll expand the boxes.

Offline

 

#3 2008-06-10 13:32:11

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Templating system - and making changes

Smarty is the next release template system and not the actual one.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#4 2008-06-11 01:00:03

carminejg3
Member
2008-05-23
35

Re: Templating system - and making changes

thank you.... 

So it will be smarty next in the next realise...

i run a gallery now and i notice its hard to get around my current one ....  thats why i throw out my ideas for you.  I also will have about 3,000- 20,000 pictures in mine when i update it, so I'm also looking into caching ideas that would store the pages for a 24-72 hour window.

Offline

 

#5 2008-06-11 11:04:37

linuxlefty
Member
China
2008-04-13
65

Re: Templating system - and making changes

VDigital wrote:

Smarty is the next release template system and not the actual one.
8-)

Whoops. That's what I get for basing info off of the subversion build, lol.

Offline

 

#6 2008-06-11 20:31:35

carminejg3
Member
2008-05-23
35

Re: Templating system - and making changes

lol well it was a fast response...

so will i need to recustomize my templates after the smarty release?

Offline

 

#7 2008-06-11 21:37:18

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Templating system - and making changes

Sorry about that but we decided to remove the previous system.
So everybody will have this constraint but next release will add a lot of major enhancements.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Extensions
  •  » Templating system - and making changes

Board footer

Powered by FluxBB

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