Hi,
I would like to make a plug-in that is filtering categories depending on the value of site
For the categories menu is simple:
(ex.)
add_event_handler('get_categories_menu_sql_where', 'filterbys_begin_index' ); function filterbys_begin_index($where) { $where .= "AND site_id =2"; return $where; }
but do not know how to intercept and modify thee where that allow to select the categories in the rest of the frontend ....
someone would give me a tip on various event_handler?
thank you
Piwigo version: 2,7
Last edited by leonardo.g (2015-03-13 10:39:25)
Offline
I wrote a new plugin to create multiple galleries in the same installation.
We can open the site with a parameter (sitename) to see some categories (and not others) with a optional different title and a different theme.
In the moment I have not entered an interface for administrator (to change name, title and theme)
Someone wants to work with me?
Offline
Hi leonardo.g,
That is very interesting.
Did you also study the multisite feature of Piwigo? (this is the feature used on Piwigo.com)
Offline