Hi guys,
I would like to know, if there is anyway you can make a true variable-width theme for G3. In the theme settings you set how many images are per page, but there are always three in one row. I would like the theme to place images in rows according to screen size, just like in Google Picasaweb. Is there anyway I can make this happen?
Thanks!
izvir
Posts: 16504
Go for it. So far there is only the default theme and I've seen one other other person create a theme.
Copy /gallery3/themes/default into a new directory like /gallery3/themes/MyTheme and start hacking away at the theme files under the views directory /gallery3/themes/MyTheme/views/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
Create your own theme like nivekiam said and just change:
themes/default/views/page.html.php
to:
That will give you 100% page width.
Read up on grids:
http://developer.yahoo.com/yui/examples/grids/grids-doc.html for other widths.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Thanks! Looks like I should get myself more familiarized with YUI. Anyways, I tried the above; and it indeed does give the page 100% width. Here's the test gallery:
http://izvir-klub.homeip.net/gallery3/index.php/Ultegra_6700
The problem is, there are still only three images in one row. So, which file (or where is the parameter?) should I go to change that?
Thanks again!
Posts: 27300
OK, now you have a fluid width page but have a fixed width containers inside.
Edit the css:
and adjust the width of gContent to something like 95% and see if that works out.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Thanks! Works like a dream. Really appreciate your help!
Best regards.
Posts: 27300
How does it feel to be a theme developer now? not too bad was it?
Would be nice if to copied the orgianl theme and created a new one. Then you could zip up the theme, post it here for others that would like the full width.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
Well nobody stepped up to the plate so I offer my version of the wide wind theme.
Attached.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16504
Updated for the current code base?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
http://codex.gallery2.org/Gallery3:Themes:widewind
Updated. Had some issues with file attachments so just used the codex.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16504
Sweet! Thanks Dave!
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here