[slider] Can you view a specific image directly with the slider theme?
corbosman
Joined: 2005-10-06
Posts: 30
Posted: Sun, 2006-02-12 20:58
I use a slightly modified slider theme in my website. Sometimes id like to point someone to a specific image in one of the galleries. Is it possible to create a URL that will load/show a specific image with the slider theme?
xxxxx is the ID of the item you wish to view (if you use URL rewrite the URL will look different but you can still access the items this way)
The only time you would not be able to do that is when you use your gallery embedded. then it could be slightly different.
-------------------------
The Termite
corbosman
Joined: 2005-10-06
Posts: 30
Posted: Sun, 2006-02-12 21:59
This will surely show the image, but by itself. The slider theme has a main viewing window and a bunch of thumbnails, and normally it loads the first image in the viewing screen. Im wondering if you can tell the theme to preload one of the other images..
Cor
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2006-02-12 22:13
Well in that case then. It seems not.
When you click on a thumbnail it basically call a javascript function image_show(xx) xx is the number of the thumb on the thumb bar (unrelated to the item id).
I don't think you can - using a certain URL - trigger the correct javascript for a specific picture to show.
bottom, from what I understand of that theme it's not possible the way it's coded.
I'm sure you -could- make some changes to add a new variable that would trigger it for you. for example add a g2_showpic=3 to trigger image_show(3) and so have the right things happenning. but you would have to code that yourself
-------------------------
The Termite
corbosman
Joined: 2005-10-06
Posts: 30
Posted: Sun, 2006-02-12 22:24
I was hoping something would be in place, but if I have to code something myself so be it. I made some slight changes anyways to have some space around the main view, a border around the images, and if I remember correctly some IE changes that were necessary because of the those changes.
Anyways, thanks for your answer. See my underwater photo galleries at http://underwa.ter.net
Cor
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2006-02-12 22:38
Sweet pics man ...
what kinda of camera did you get for those ? I've always try to find a very nice camera for underwater sceneries and I have had little succes so far
Thanks for sharing !
-------------------------
The Termite
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2006-02-13 02:46
the suggestion in the first reply should work... while slider (and hybrid) don't have separate html pages to view the photos like other themes do, they do check for core.ShowItem requests for a particular photos.. in that case it should load the parent album and display the requested photo. this does require cookies.
(it is core.DownloadItem that would just show the image by itself)
corbosman
Joined: 2005-10-06
Posts: 30
Posted: Mon, 2006-02-13 22:01
Hi mindless, you're right, it does work with the right idemid. I was fooled by the fact that if you hover your mouse over the images they all show the same itemid in the URL bar in firefox (at least they do for me). If I manually pick an itemid it works fine. (see for instance this link: http://underwa.ter.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=1186
Termite, the camera is a Nikon D2x for the images in the portfolio and the latest gallery, and all others either Nikon D100 or Nikon F100.
Posts: 1894
I might be wrong about that but whether you use the slider theme or any other theme, all item can be reached the same way:
http://YourHost/PathToGallery/main.php?g2_view=core.ShowItem&g2_itemId=xxxxx
xxxxx is the ID of the item you wish to view (if you use URL rewrite the URL will look different but you can still access the items this way)
The only time you would not be able to do that is when you use your gallery embedded. then it could be slightly different.
-------------------------
The Termite
Posts: 30
This will surely show the image, but by itself. The slider theme has a main viewing window and a bunch of thumbnails, and normally it loads the first image in the viewing screen. Im wondering if you can tell the theme to preload one of the other images..
Cor
Posts: 1894
Well in that case then. It seems not.
When you click on a thumbnail it basically call a javascript function image_show(xx) xx is the number of the thumb on the thumb bar (unrelated to the item id).
I don't think you can - using a certain URL - trigger the correct javascript for a specific picture to show.
bottom, from what I understand of that theme it's not possible the way it's coded.
I'm sure you -could- make some changes to add a new variable that would trigger it for you. for example add a g2_showpic=3 to trigger image_show(3) and so have the right things happenning. but you would have to code that yourself
-------------------------
The Termite
Posts: 30
I was hoping something would be in place, but if I have to code something myself so be it. I made some slight changes anyways to have some space around the main view, a border around the images, and if I remember correctly some IE changes that were necessary because of the those changes.
Anyways, thanks for your answer. See my underwater photo galleries at http://underwa.ter.net
Cor
Posts: 1894
Sweet pics man ...
what kinda of camera did you get for those ? I've always try to find a very nice camera for underwater sceneries and I have had little succes so far
Thanks for sharing !
-------------------------
The Termite
Posts: 8601
the suggestion in the first reply should work... while slider (and hybrid) don't have separate html pages to view the photos like other themes do, they do check for core.ShowItem requests for a particular photos.. in that case it should load the parent album and display the requested photo. this does require cookies.
(it is core.DownloadItem that would just show the image by itself)
Posts: 30
Hi mindless, you're right, it does work with the right idemid. I was fooled by the fact that if you hover your mouse over the images they all show the same itemid in the URL bar in firefox (at least they do for me). If I manually pick an itemid it works fine. (see for instance this link: http://underwa.ter.net/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=1186
Termite, the camera is a Nikon D2x for the images in the portfolio and the latest gallery, and all others either Nikon D100 or Nikon F100.
Cor