Overview:
+This code allows you to select the view Simple for the
Image Gallery. It will display the first Gallery on the page
the module is deployed on (additional galleries are
intact, just not shown).
Uses:
+You can now add an image-bar to the left- or right-
side-bar (select one image per row).
+As you select images, they are blown up on the main
page, and you can select the next one from the, still
visible, sidebar.
+Works extremely slick if you have standardized on
image size.
Caveats:
+Fully functional with exception of multiple pages (would
be confusing).
+If the you have an Image Gallery in the left- or right-
sidebar with view Simple, the page will not refresh to
the calling page after editing module- or Gallery
attributes. Only affects Admin level users and is
cosmetical.
+I had to hack the class.php in
modules/imagegallerymodule in order to get this to
work: Simple is hard-coded (yes, I know) in class.php.
Possible Improvements:
+Would like to create _view_simple_image.tpl where (in
<gallery-name>) is replaced by return to page, so you
cannot open the same gallery twice on one page. This is
cosmetic, and I did not want to hard-code Simple in
view_image.php as well.
+Would like to hack ContainerSourceControl.js and
containermodule, to allow for copy, rather than re-use, of
existing Gallery. I have a large media library and this
view was made for teasers. I would copy content and
then delete what I do not need this way all meta-data
associated with the images would remain intact
(descriptions etc.).
Version:
+0.96.2
Files:
+ modules/imagegallerymodule/class.php WARNING:
if you upgrade to a higher Exponent version, you have to
re-copy this file.
+ modules/imagegallerymodule/views/simple.tpl
+
modules/imagegallerymodule/views/_view_simple_gallery
.tpl
Image Gallery Simple view for 0.96.2
Logged In: YES
user_id=1254650
Hi gboerman,
I downloaded the zip file and when I tried to open it with
winzip I got the following message: 'Cannot open file: it does
not appear to be a valid archive.'
I wish to try your contribution.
Thanks,
shuki
Logged In: YES
user_id=1247631
Hi Shuki,
I just tried myself - downloading and opening - and it worked.
Maybe you can try again?
Good luck!
Gerrit
Logged In: YES
user_id=1247631
An example can be found at:
http://www.beyondthebeatenpath.com/index.php?section=42
Logged In: YES
user_id=1254650
Hi gboerman,
Download succeeded this time!
Thanks,
Shuki
Logged In: YES
user_id=1254650
Hi gboerman,
Sorry to be the only person that comment on your
contribution... I have been able to use your view successfully
but I think there is a bug somewhere. It seems that the
gallery in the simple view gives one extra "</div> element at
the end of the gallery which upset my enclosing <div>.
Wonder if you came across it and if you could indicate how to
fix it. I looked at the simple.tpl file hoping to find where you
place the <div> and </div> elements but it is not showing
there.
Thanks for your contribution,
Shuki
Logged In: YES
user_id=1316537
hhmm... for some reason I get a" Resource error" when I add
a gallery in simple view. :-\
Logged In: YES
user_id=1234559
This is a very nice idea. I got the gallery working with
this view without technical errors and it opens the first
gallery on actual page like promised on the contribution
summary text. BUT it doesn't actually open the picture in
the main page but in a old-fashioned, too big pop-up window.
Is there some difference in the code in the page that is put
as an example?
Thanks for the info in advance! :)
Logged In: YES
user_id=1234559
I got it working by changing these lines
{foreach from=$row item=image}
<td valign="bottom" align="center" style="padding: 1em">
{if $image->newwindow == 0}
TO
{foreach from=$row item=image}
<td valign="bottom" align="center" style="padding: 1em">
{if $image->newwindow == 1}
So, I changed only the number after "newwindow" to 1. I do
not know if this is the right way to do it but so far it
seems working.
Logged In: YES
user_id=1247631
Yes, I created this hack with the intention to not use open-in-
new-window. You made the change in the code, but
alternatively you can set this for each image, when you
upload it, through the interface. Or, you could just ignore the
if-statement.
I hope this helps,
Gerrit
Logged In: YES
user_id=1234559
Thanks for the info!
I didn't indeed want the pop up window for your hack either
but it came so before I changed the code. I didn't realise I
can change it one by one.
Hey, do you have any idea how I could make the pop up window
nicely, only the size of the picture, not a big window with
huge amount of empty white space like now? I like your hack
but sometimes pop up would be needed too. ;)
Thanks for everything!
Gene
Logged In: YES
user_id=1241832
Is it possible for any of you great developers to adapt
the Simple View to Exponent 96.5 Image Gallery Module?