Looking for a module that will generate a sort of site map

gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Sun, 2009-10-11 20:03

I'm not looking for a plugin to generate a Google sitemap, but what I'd like is something that would list all the albums on my site, with the proper links included. That way instead of digging through multiple levels of albums I could display one page showing everything hierarchically, so the user could quickly find the album they're looking for.

I thought of copying this out of the sidebar which shows all the albums, but for some reason no albums are being listed there, even if I hit expand. Any ideas? I don't know what's changed as I haven't touched my gallery for some time.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-10-12 01:49
 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Mon, 2009-10-12 03:03

That just gives me a Google XML sitemap. I'm looking for something that can just generate a list (HTML preferably) with links to all my albums, and nest them if possible.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-10-12 04:15

There is a the album select block that has a dropdown or a DHTML tree.
http://codex.gallery2.org/Gallery2:Modules:albumselect
and a modification to show HTML to be pasted were you like:
http://gallery.menalto.com/node/90566#comment-318999

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Mon, 2009-10-12 16:20

Looks like my DHTML tree wasn't working for some reason, but the regular dropdown box did. Is there any way to expand the width of the sidebar? There was nothing in the Carbon theme properties for that, but it'd be nice, in order to fit in the entire album name.

And the second link does exactly what I wanted. I'll just customize it further. :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-10-12 16:47

@width: Some themes are hard coded some are CSS width.
Need a url to help out further.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Tue, 2009-10-13 21:18

http://www.gschneiderphoto.com/gallery/v/birds/

Hit the sidebar expand button on the top left. It's almost there, but could be a touch wider to fit in some of the names.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-10-14 01:21

At the url proveded I don't see an issue.
See attached.
Perhaps you can create a test album with the behavior with some test titles/items?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Wed, 2009-10-21 13:09

Oh, I mean once you click on the jump to album list, some of the album names don't quite fit in.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-10-21 13:38

Are you talking about the album select dropdown?
I see this album Northern Saw-whet Owl is truncated. Is that what you are after?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Tue, 2009-11-03 20:49

Sorry for the late reply. Yes, that's what I was referring to.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-11-04 02:19

Edit
stripTitles=true truncateTitles="20" createTextTree=true}
change the 20 to a larger number
in
modules/albumselect/templates/blocks/AlbumSelect.tpl

You might have to change the CSS or the sidebar width to make it wider as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Thu, 2009-11-05 15:15

I increased the truncation length, and then went to themes/carbon/theme.css and edited the side bar width to 200px, but that seems to have completely changed its behaviour and even when closed it's shoved off to the left side and still visible. There must be something else I need to modify.

Relevant code:

#gsSidebar {
  border-right-width: 0px;
  width: 200px;
  overflow: hidden;
  margin: 0 5px 0 5px;
}

#gsSidebarCol {
  border: #666 1px solid;
  padding-bottom: 5px;
  width: 1%; /* Expand to fit content ("0" bad4 firefox, "1px" bad4 opera) */
}
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-11-08 18:01

If I view the source I don't see that you have changed this:

#gsSidebar {
  border-right-width: 0px;
  width: 200px;
  overflow: hidden;
  margin: 0 5px 0 5px;
}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Sat, 2009-11-14 04:35

Yes - I changed it back so the site keeps working. If I keep it at 200px I get the following:

[img]http://img43.imageshack.us/img43/8434/screenshotcp.png[/img]

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-11-14 07:15

Then you have to find the code that positions the sidebar further to the left.
The theme you are using was not designed for having the sidebar wider.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gregschneider

Joined: 2005-05-06
Posts: 51
Posted: Sun, 2009-11-15 21:59

Makes sense. Thanks