2012-11-09, 06:05:03
(2012-11-08, 22:26:01)mineque Wrote: hi mvlcek
could you tell me what i'm doing wrong.
I have such structure:
- gallery called "testing" -> (% gallery name=testing %)
- page "contact"
- subpage "contact-sidebar" -> (% gallery name=testing %)
- component "sidebar" which is loaded in template.
Component load page (contact-sidebar) using getPageContent();
and anything what i get is sidebar unfortunatelly is: (% gallery name=testing %)
Is such structure like above possible to work with your gallery?
Thanks in advance
This won't work. You can either have the gallery in the content with (% gallery ... %) or in the template with get_i18n_gallery_header(...) and get_i18n_gallery(...).
Your setup might work, if you also include a get_i18n_gallery_header(...) in the template, but it would need to be for a gallery of the same type and properties (thumbnail, image sizes, etc) of the one in the content.
But you could instead use I18N Custom Fields or I18N Special Pages to add a field 'GalleryName' and a field 'Sidebar' to your page(s) and include this side bar conent and gallery directly in your template with get_i18n_gallery_header(...) and get_i18n_gallery(...) using get/return_custom/special_field(...).