I upgraded from V2 to V3 and the feature which I am missing is the ability to display the items from just ONE Album (plus sub-albums) in the Wordpress sidebar widget, as this was possible with V2.
Is there any way for me to do this, or is this feature planned for re-introduction in a future version of the plug-in ?
I use WPG2 V3.0.2, WP V2.3.1, Gallery2 V2.3.3
Thanks for any hints.
Posts: 1378
Ramind,
The feature is still around if you called the function directly, however as you have noted the widgets do not support this. We do not have any plans to add this back in as the entire imageblock functionality is slated for redevelopment to an internal function in WPG2 3.1 (Rather than using Gallery2 imageblock) to give us greater functionality in future releases..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 112
Just thought that I'd chime in and say I'd be a fan of this feature as well.
...though I'm not sure how to call this function directly.
Documentation says that
<?php print g2_sidebarimageblock(id); ?>
only displays the album highlight image, and the grid doesn't seem to have a specific album variable (<?php print g2_sidebargridblock(blocktype, number_of_images, blockmaximgsize, blocktitle); ?>
).What's necessary to create a small sidebar grid of a specific album?
Posts: 1378
travelvice,
Unfortunately you cannot, as you have found the grid was only coded to support a very limited subset of the G2 imageblock functions and specificID was not one of them..
Your point raises an interesting thought however, I had forgotten about the Random Highlight Module in Gallery2, it could be possible to code the sidebar block (<?php print g2_sidebarimageblock(id); ?>) to point to the ID of the album and then to use the Gallery2 random Highlight module to change the highlight thus giving the appearing of a random photo for a specific album.
Either way, on our development plans we are going to move away from the G2 imageblock function to our own internal function so we can create more flexible random blocks..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 112
Thanks for the thoughts Ozgreg,
Interestingly enough, I came across this fellow's page:
http://drewd.com/2006/11/28/wpg2-sidebar-block-recent-or-random-images-from-specific-album/
Posts: 1378
Actually you could do it much simpler than that, by adding the specific id support back from the sidebar function however you would want to support multiple ID's (one per image grid) to make it all work..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo