Image link to next image in album, rather than the enlarged version
expanoncolin
Joined: 2007-05-31
Posts: 4 |
![]() |
Hello, Just started using Gallery. Great software! So many options, so tweakable. I'm slowly getting it to look and act just like I want, but there are two things I can't figure out. The first is, I was wondering if there was a way to make it so that when you clicked on a photo, instead of going to the enlarged version, it just went to the next photo. I have gallery contained in a div and when you go to an enlarged photo it looks very silly - plus, I feel like the people looking at the photos would be more likely to want to see what's next, rather than the full-size version. The other thing is, I want to change the previous, first, next, and last icons, but I can't find the image files anywhere, and they aren't part of the icon pack. Thanks so much for any help, and for providing such useful software. -Colin |
|
expanoncolin
Joined: 2007-05-31
Posts: 4 |
![]() |
Scratch that about the next/first/last/previous icons - found them in the template images folder no problem, I was just being stupid. The link thing I'm still curious about. -Colin |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Some themes have the behavior you want: Some themes allow you to click the left side to go tot the previous image and the right side to go tot he next image. If you don't want the full sized version viewable then set permissions for that. _____________________________________________ |
|
expanoncolin
Joined: 2007-05-31
Posts: 4 |
![]() |
floridave wrote:
Some themes have the behavior you want: Is there any way to do it with the Matrix theme? I've already spent a while customizing this theme to fit in just like I want. -Colin |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Find how the theme that does it and add the same code to the matrix theme. It might even work if you just copy the photo.tpl from the theme that does the behavior to the matrix theme. Dave |
|
expanoncolin
Joined: 2007-05-31
Posts: 4 |
![]() |
Thanks very much for the advice, I'll investigate. -Colin |
|
kreator
Joined: 2005-03-30
Posts: 10 |
![]() |
[Config: Server 2003 SP2 EE / IIS 6.0 / SQL Server 2005] I know this is quite old, but seeing as i just modified the code for the matrix theme to work, i thought i'd post for anyone trying to make this work. in page.tpl replace: Quote:
<div id="gsImageView" class="gbBlock"> with Quote:
<div id="gsImageView" class="gbBlock"> make sure to do this in a copy of page.tpl placed in the local folder under templates, so you keep the original. |
|
papasan
Joined: 2005-08-23
Posts: 1 |
![]() |
made a slight change for looping the album and no text. thanks for the original, kreator. {if !empty($theme.imageViews)} {capture name="fallback"} <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`" forceFullUrl=true forceSessionId=true}"> {g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1} </a> {/capture} {if $image.viewInline} {if isset($theme.navigator.next)} <a href="{g->url params=$theme.navigator.next.urlParams}"> {else} <a href="{g->url params=$theme.navigator.first.urlParams}"> {/if} {if isset($theme.photoFrame)} {g->container type="imageframe.ImageFrame" frame=$theme.photoFrame width=$image.width height=$image.height} {g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%"} {/g->container} {else} {g->image item=$theme.item image=$image fallback=$smarty.capture.fallback} {/if} </a> {else} {$smarty.capture.fallback} {/if} {else} {g->text text="There is nothing to view for this item."} {/if} |
|