How to call a specific album

Hello, everyone. I was searching for how to call a specific album in the codeblock. Actually the codeblock is working in the theme and I was able to call a link to the gallery. But what I want to do is to show the entire thumbnail index of a specific album.

Any idea anyone, please ?
best regards

Comments

  • acrylian Administrator, Developer
    Take a look here: http://www.zenphoto.org/news/zenphotos-object-model-framework

    Also review the theming tutorial how album pages are done. You will need that if you really want the entire "thumb index". In any case you will need to do some coding.
  • Hey Malte, thank you for your fast reply. Since I was not able to get any functions like: getAlbum() or printAlbum() to work properly I am using for the moment a solution which is more a workaround:

    <?php if(function_exists("printCustomMenu")) {printCustomMenu("bio");} ?>
  • acrylian Administrator, Developer
    Those are object methods and no simple functions and require some coding knowledge …
    (Btw, there is no `printAlbum()` method or function at all … )

    If a link is enough for you a custom menu is a way.
  • "Btw,there is no ...." Oh, yes, ah I tried to use this one:

    < ?php while (next_album()): ?>
    < ?php printAlbumThumbImage(getAlbumTitle()); ?>
    < ?php endwhile; ?>
  • acrylian Administrator, Developer
    That does not work because the required context is not set. The functions don't know what to do.

    You could use `makeAlbumCurrent()` to set the current album context. Then this would print the albums within that current album if it has subalbums. But if you call that on an album or image page it may cause other issues.
Sign In or Register to comment.