2012-02-15, 13:46:18
mvlcek Wrote:avoleoo Wrote:Please take a look here: http://www.graf1x.com/index.php?id=news
The cropped pictures from the gallery show up, even links work, but the alignment and JS is not working.
I managed to display pictures by putting these two lines:
(% gallery type=prettyphoto autostart=true %)
(% searchresults tags:news numWords:-50 order:reverseurl %)
Showing galleries in the search results is generally not possible.
But if all your galleries have the same properties, you can create a special page template for the search result page and add something like <?php get_i18n_gallery_header('my-gallery', array('type'=>'prettyphoto', 'autostart'=>true)); ?> to its header. This should set the appropriate styles and load the JS files.
Thanks mvlcek, It worked out well, but the only thing is that every time I will want to post new gallery I will have to add syntax to header of the special page, right? Is there any way around?