Extending I18N Gallery - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8) +--- Thread: Extending I18N Gallery (/showthread.php?tid=2507) |
Extending I18N Gallery - mvlcek - 2011-12-18 If you want to create a new gallery type type for I18N Gallery, you need to
Ad i18n_gallery_type_edit: All fields must be named type-xxx Ad i18n_gallery_type_header: Use helper functions from helper.php, e.g.
Make sure to separate your CSS into general parts (for all galleries of this type) and specific parts (e.g. size settings for the current gallery. Ad i18n_gallery_type_content: If the gallery shows thumbnails you should check, if only one thumbnail should be displayed (function i18n_gallery_thumb) and hide all other thumbnails in this case. You should also check, if a specific picture ($pic) should be displayed. Preferably the gallery should also work with Javascript switched off (currently cycle works without Javascript and fancybox and prettyPhoto have a fallback). Please look at the existing gallery types (plugin_xxx.php) for more information. Edit: This information and more can also be found here. Extending I18N Gallery - didou038 - 2011-12-18 Thanks a lot ! very very helpful ! Extending I18N Gallery - Connie - 2012-03-29 mvlcek Wrote:Please look at the existing gallery types (plugin_xxx.php) for more information. Martin, could you add this to your documentation? It is so difficult to find in the forum ;=) Cheers, Connie Extending I18N Gallery - mvlcek - 2012-03-29 Connie Wrote:Martin, could you add this to your documentation? It is so difficult to find in the forum ;=) Thanks, Connie - I was looking for this! I knew I had written something like this, but neither the search term i18n_gallery_register nor gallery register would return anything :-( I have already started to document it here, now I can include the information in this thread. |