zenphoto forums » Themes

Number of entries in collapsible list

(6 posts)
  • Started 6 months ago by imagepet
  • Latest reply from imagepet

No tags yet.

  1. imagepet

    Member
    Joined: Aug '16
    Posts: 13

    Hi everybody!
    As I wrote 2 week ago, I'm working with a customized version of zpmobile. We organise our albums with sub albums and I expect > 100 sub albums in one or more albums. Is it possible to limit the number of entries in the collapsible list (ul.taglist li a, #collapsible-lists li a, #tagcloud li a) for example to 20 or 30 entries to save space?

    I wish all merry Christmas and a happy 2017!
    Thanks

    Posted 6 months ago #
  2. Zenphoto development team
    acrylian

    Zenphoto team
    Joined: Jul '07
    Posts: 16,769

    For the tag cloud you can set several parameteres on the related function:
    http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintAllTagsAs

    For the album list: Well, yes, but you have to code your own album menu function. The standard one just prints what is there. An alternative would be to use the menu manger plugin instead but then you would have to do everything manually.

    Don't forget to read the Forum rules and usage resources
    Posted 6 months ago #
  3. Zenphoto development team
    fretzl

    Zenphoto team
    Joined: Sep '08
    Posts: 1,096

    It's all a matter of tweaking the CSS.
    To get you started try adding this to the stylesheet:

    #collapsible-lists ul:first-child {
        max-height: 400px;
        overflow-y: auto;
    }
    Don't forget to read the Forum rules and usage resources
    Posted 6 months ago #
  4. Zenphoto development team
    acrylian

    Zenphoto team
    Joined: Jul '07
    Posts: 16,769

    If it is jus the space itself and you want still everything printed fretzl's way is indeed the way ;-)

    Don't forget to read the Forum rules and usage resources
    Posted 6 months ago #
  5. imagepet

    Member
    Joined: Aug '16
    Posts: 13

    Hi fretzl and acrylian,
    Many thanks for your answers! But you are overcharging me ;-) I just returned from a photo shooting an I read your posts. I'm trying it probably tomorrow and I'll answer you.
    I don't want to print everything but let's say 20 or 25 lines with tags of the latest sub albums (they are sorted by date desc).

    Posted 6 months ago #
  6. imagepet

    Member
    Joined: Aug '16
    Posts: 13

    Late answer: fretzl, your solution is fine for me so far, thanks. To do everything manually is to much for me in the moment. Thanks to acrylian too.

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.