zenphoto forums » Themes

Number of entries in collapsible list

(5 posts)
  • Started 1 month ago by imagepet
  • Latest reply from imagepet
  1. imagepet

    Junior
    Joined: Aug '16
    Posts: 9

    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 1 month ago #
  2. Zenphoto development team
    acrylian

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

    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 1 month ago #
  3. Zenphoto development team
    fretzl

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

    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 1 month ago #
  4. Zenphoto development team
    acrylian

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

    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 1 month ago #
  5. imagepet

    Junior
    Joined: Aug '16
    Posts: 9

    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 1 month ago #

RSS feed for this topic

Reply

You must log in to post.