album sorting and sectioning settings

fak
fak's picture

Joined: 2003-05-26
Posts: 8
Posted: Fri, 2009-01-23 21:23

Hi,

1/ is there any possibility to turn off the years that group the albums?
2/ I would like to divide the albums to my sections on the main page like some kind of transparent albums with a heading and with subalbums straight on the main page, e.g.:

MAIN GALLERY PAGE

Section 1

Album 1
Album 2
Album 3

Section 2

Album 4
Album 5
Album 6

Thank you for your help

Petr

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-01-24 02:17
Quote:
turn off the years that group the albums?

I don't understand. What theme are you using?

So in the above example you want to add some text before Album 1 and Album 4?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fak
fak's picture

Joined: 2003-05-26
Posts: 8
Posted: Sat, 2009-01-24 04:08

Basically you are right, I want to add a text before albums. I tried to do that at gallery.union.edu. But the Sections are just albums with links in summary, that lead to sub-albums, which is not really practical.
The theme we are using is Siriux.

Thank You for helping

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-01-24 04:32
Quote:
I want to add a text before albums.

Only on the root album?
I am still lost.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fak
fak's picture

Joined: 2003-05-26
Posts: 8
Posted: Sat, 2009-01-24 06:28

yes, I want to divide the root album to sections with albums and the sections would have headings...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-01-24 15:33

How confortable are you with editing template files?
Do you have some smarty and HTML knowledge?

I would edit album.tpl. there is a loop that starts with:
{foreach from=$theme.children item=child}
and this theme adds years that you will see in the code below that foreach.
add some test text outside curly braces and see where it shows up.
then use:

{if empty($theme.parents)}
{if $theme.pageType != 'admin'}
stuff on root album only and not a admin page
{/if}
{/if}

then you will have to count the albums you are showing in your case"
Album 1
Album 2
Album 3
then show some more text.
You might be able to get some ideas on adding stuff between rows from this thread:
http://gallery.menalto.com/node/52322

I will let you get started on that and if you get stuck I will see if I can help out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team