Album List

ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Wed, 2011-01-12 06:01

Maybe I'm missing something, but I've searched and searched and just can't find the answer.

Is there an album list for Gallery 3? From what I can see there's not, this is the only thing holding me back from migrating my two main sites to version 3.
I've got my family album running on G3 and I like it, but the album list is a must have for my two big sites.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Wed, 2011-01-12 11:04

I am not sure what do you mean by Album List, but there is a module that generates a tree for all of your albums (Album Tree): http://gallerymodules.com

 
ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Wed, 2011-01-12 20:45

Thanks mamouneyya, I discovered that site yesterday and gave that module a try, but unfortunately it won't suit, as it displays the album in a drop down box, which a lot of visitors wouldn't notice.

By album list I mean the list on one of my sites: http://www.avatarsplus.com where you can see all of the albums on the left of the screen.

From reading around it looks like I'll need to wait for a module to get written to do what I want.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-01-12 21:59

I think there is an advance setting for change from a dropdown to a list.
When I get time I will write some docs for this new module.
Unless somebody else cares to.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Retroguy
Retroguy's picture

Joined: 2010-12-29
Posts: 27
Posted: Thu, 2011-01-13 07:17

@ryanstev

I'm using albumtree as a list on my site. To enable as a list, simply select admin>settings>advanced and change this setting
[img]http://retroguy.org/dev/albumtree1.png[/img]

to this

[img]http://retroguy.org/dev/albumtree2.png[/img]

regards,

http://retroguy.org

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-01-13 15:09

Codex page created:
http://codex.gallery2.org/Gallery3:Modules:album_tree
If you find issues or if it needs more info, please feel free to edit. The docs are for users by users.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Fri, 2011-01-14 05:43

Thanks Retroguy, I tried that setting the other day, it doesn't look right, it puts the list in a scroll box, etc.
I'm just going to wait for another module like this before I upgrade to G3.

 
Retroguy
Retroguy's picture

Joined: 2010-12-29
Posts: 27
Posted: Fri, 2011-01-14 06:22

I feel your pain.

I've been trying to rebuild this module for the last week to make it semantic and customisable, but I can't convert my old school php so it runs in G3/kohana.

The lack of a good menu is a big hole in the G3 framework IMO.

Good luck.

regards,

http://retroguy.org

 
ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Fri, 2011-01-14 11:46

I took out the height declaration in the CSS for the script and this makes the script look a lot better.

 
ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Sat, 2011-01-15 04:43

I've made a modification to albumtree_block_list.html.php which outputs the data in a way I like.
The original script has an error in it where it assumes Gallery is running from the root directory, I've fixed that in my version and adjusted the html output to look a bit tidier.

I tried really hard to make it a collapsible menu, but I couldn't figure out how to get the javascript code in the head tags, so this is the best I could do.

If you're interested in my modifications I can upload it somewhere for you.

 
Retroguy
Retroguy's picture

Joined: 2010-12-29
Posts: 27
Posted: Sat, 2011-01-15 04:56
Quote:
If you're interested in my modifications I can upload it somewhere for you.

Yeah I would be very keen to see what you have come up with.

If you zip your files up, you can then upload them to this thread using the file attachment option at the bottom of the screen.

regards,

http://retroguy.org

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-01-15 05:06

Adding JS to the head tags is done via a helper:

class theme_name_theme_Core {
  static function head($theme) {
    $theme->script("some_code.js");
  }
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ryanstev

Joined: 2005-09-30
Posts: 8
Posted: Sat, 2011-01-15 06:34

Here's the modified file, there are only a couple of lines changed, so not a huge change.

 
Retroguy
Retroguy's picture

Joined: 2010-12-29
Posts: 27
Posted: Sun, 2011-01-16 07:11

Here's mine (albumtree_block_menu.html_.zip). U/L to your albumtree -> views folder and then change your advanced config settings to 'menu'.

Creates an unordered list that can be targeted with css. NOTE: this is not a recursive function, nor is it semantic HTML*.

* I have a script that is both of these (see attachment 'multilist'). If you know how to convert this to run in G3 I'd be happy to share. (coz I sure as hell can't get it to run in kohana/g3)

regards,

http://retroguy.org