![]() |
|
Dynamic Albums - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Dynamic Albums (/thread-11902.html) |
Dynamic Albums - alexsmith2709 - 2015-03-04 Hi, I am using the zbBase theme and putting the code in the codeblock of the gallery. Thanks, Dynamic Albums - acrylian - 2015-03-04 The code example above is meant to be used programmatically on theme files, That worked last time I tried. Since codeblocks go through a function call they are a bit different and the global context needed may generally not be setup correctly that easily. Editing the theme might be a way. Or maybe it has an option for a custom page. Then you could create a new theme page for the multiple_layouts plugin and use that for the homepage. Dynamic Albums - gjr - 2015-03-04 Please review object model framework: This will get you started... place in codeblock as you say (make sure codeblock is called in theme): ` Dynamic Albums - acrylian - 2015-03-04 That's a way to do it via a codeblock. The other code has a different additional purpose additionally though. Just to mention it. Dynamic Albums - gjr - 2015-03-04 Yep, alexsmith2709 is asking how to do it in a codeblock Dynamic Albums - alexsmith2709 - 2015-03-05 Thanks for your help. That code has helped. Now i need to work on the layout. Is it possible to use this code to create a masonry layout with images? I see in the multiple layout options of zpbase its only possible with albums. Dynamic Albums - gjr - 2015-03-06 Yes, of course, you would need to do some custom coding or take a look at what is already in zpBase and tailor it to your needs. Dynamic Albums - alexsmith2709 - 2015-03-06 Thanks gjr, i appreciate your help. I had been trying some code from whats already in zpbase but havent got there yet, i'll keep working on it! |