Member
Member
djassemi   2015-04-01, 19:26
#1

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

Administrator
Administrator
acrylian   2015-04-01, 19:32
#2

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.

Member
Member
djassemi   2015-04-02, 13:35
#3

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:

Administrator
Administrator
acrylian   2015-04-02, 14:11
#4

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.

Member
Member
djassemi   2015-04-02, 14:30
#5

"Btw,there is no ...." Oh, yes, ah I tried to use this one:

< ?php while (next_album()): ?>
< ?php printAlbumThumbImage(getAlbumTitle()); ?>
< ?php endwhile; ?>

Administrator
Administrator
acrylian   2015-04-02, 14:53
#6

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.