Creating a Theme: how to add properties?

derari

Joined: 2009-08-16
Posts: 4
Posted: Sun, 2009-08-16 15:54

Hi folks,

I am currently creating a theme (by modifying the matrix (yes, I'm the one ;)), and I want to add some more properties (like number of rows/cols) to make it more customizable.

How can I do this?

Greetings,
derari

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-08-16 16:59

If you're modifying the Matrix theme, it already has those options. To make the change globally go to Site Admin > Themes > Matrix. To change it at the album level click on Edit Album > Theme (tab)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
derari

Joined: 2009-08-16
Posts: 4
Posted: Mon, 2009-08-17 09:02

Yes, I know that. But I need more options.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-08-17 13:27

If you look at theme.inc you will see how existing options are created with the defaults. If you compare the theme.inc of matrix with lets say carbon you will see how some options are done.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-08-17 13:28

or do you mean more option for rows/col ?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-08-17 13:49

Or take a look at the xtreme theme. I think that theme even has options for choosing the winning lottery numbers. I'm kidding :), but it's got options for all kinds of stuff.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
derari

Joined: 2009-08-16
Posts: 4
Posted: Thu, 2009-08-20 21:14

Thanks for your help, now everything works just fine :)
Maybe I will publish the theme the next days