ZenphotoCMS Forum
album-based options? - 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: album-based options? (/thread-5131.html)



album-based options? - FilMar - 2009-05-03

Via themeoptions.php can I add extra options global for the theme.
Is there also a way to add extra options on album-level so that they can be set separatly for each (sub-)album?

Thanks in advance,

greetings,

FilMar




album-based options? - acrylian - 2009-05-03

You can override basically all options directly in the theme by using http://www.zenphoto.org/documentation/functions/_functions-basic.php.html#functionsetOption and of course do that using if/else or switch depending on the current album.

Additionally you can use so called "album themes".




album-based options? - sbillard - 2009-05-03

If you want options specific to a subalbum you would need to make use of the "custom data" field. If you wanted to do that via the themeoptions script you would probably want to create a custom handler. If you want to do it from the admin-edit pages then you might want to create a filter for the custom data.

Please see http://www.zenphoto.org/2008/04/zenphoto-plugin-architecture/ for further information on both these approaches. In addition, for the second approach you could review the plugin filter-customdata. This filter is new in the development stream, so if you intend to go this route, you will have to install the nightly build.