Displaying a dynamic album

Hi folks,
Thanks for developing this nice piece of software :)

Zenphoto version: 1.4.12
Theme: zpBase 1.1
I've set the theme up to run with both a home page and a gallery using the options panel.
I want to use an unpublished dynamic album as the content for the home page.
I've found where to put the html for the page in the gallery description panel.
What I can't work out is the code I need to put in to call the unpublished dynamic album.
I thought I had read all the info on dynamic albums etc, obviously not.
Can anyone point me in the right direction, Thanks

Comments

  • acrylian Administrator, Developer
    The gallery description is static but especially dynamic albums are not.

    So you could do two things:
    a) technically embed the album thumb linking to the album via tinyZenpage (The "ZP" icon in the editor toolbar aboveif you have chosen for example the "light" configuration in the tinymce4 plugin). That would be static and not mirror any changes to the album

    b) Modify the theme's index plage using the object model:
    http://www.zenphoto.org/news/zenphotos-object-model-framework/

    Basically you have to setup an album object, use the theme function `makeAlbumCurrent($albumobject)` to make it the current album and then you should be able to use the `next_image` loop on the home page. Or you do any kind of custom code you like. Depending on your knowledge this might be a bit advanced.
  • Llleb Member
    Thanks acrylian,
    I'll go and have a read and see and see if I can sort something out.
Sign In or Register to comment.