View Full Version : Specific links in gallery?
Bundy
30th of November 2003 (Sun), 11:52
I'm trying to create some links from within my main site to various sections of the gallery. If I understand the variables correctly, combinations of variable code will get other specific links within the site.
For example, I know that http://www.vancouverimageworks.com/gallery/list.php?exhibition=7777777&lang=eng links me to "All exhibitions combined" sorted by the default order (header name).
- to get All exhibitions combined - ADD exhibition=7777777 after list.php?
- to get different languages - ADD lang=eng (lang=fin) after list.php?
I'd like to set up the following specific links within the gallery (preferably without the sorting and search being displayed):
- All exhibitions combined sorted by header in 4 per row?
- All exhibitions combined sorted by header in detail list 1 or 2?
- All exhibitions combined sorted by date?
- All exhibitions combined sorted by photographer?
- All exhibitions combined sorted by location?
- All exhibitions combined sorted by camera?
- All exhibitions combined sorted by lens?
If anyone knows the above URL link combinations, I would be very much appreciated.
Thanks
Bundy
Pekka
30th of November 2003 (Sun), 13:06
bundy wrote:
I'm trying to create some links from within my main site to various sections of the gallery. If I understand the variables correctly, combinations of variable code will get other specific links within the site.
For example, I know that http://www.vancouverimageworks.com/gallery/list.php?exhibition=7777777&lang=eng links me to "All exhibitions combined" sorted by the default order (header name).
- to get All exhibitions combined - ADD exhibition=7777777 after list.php?
- to get different languages - ADD lang=eng (lang=fin) after list.php?
Instead of 7777777 please use exhibition=all for combined exhibitions, the number is just internal one which can be changed at any time.
I'd like to set up the following specific links within the gallery (preferably without the sorting and search being displayed):
There will be some changes in release version (see below), but for beta 5:
revealforms=X controls display of hidden forms (you define hidden ones in misc settings or in exhibition editor).
- All exhibitions combined sorted by header in 4 per row?
http://photography-on-the.net/gallery/list.php?exhibition=all&revealforms=0&sort_row=ee_photo_eng.ee_photo_header&select_output=4_per_row&lang=eng
- All exhibitions combined sorted by header in detail list 1 or 2?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=0&sort_row=ee_photo_eng.ee_photo_header&select_output=detail_list_1&lang=eng
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=0&sort_row=ee_photo_eng.ee_photo_header&select_output=detail_list_2&lang=eng
- All exhibitions combined sorted by date?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=1&select_output=detail_list_1&sort_row=ee_photo.ee_photo_exif_datetime&perpage=99999&order=ASC&lang=eng
- All exhibitions combined sorted by photographer?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=1&select_output=detail_list_1&sort_row=ee_owner.ee_owner_name&perpage=99999&order=ASC&lang=eng
- All exhibitions combined sorted by location?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=1&select_output=detail_list_1&sort_row=ee_location.ee_location_name&perpage=99999&order=ASC&lang=eng
- All exhibitions combined sorted by camera?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=1&select_output=detail_list_2&sort_row=ee_camera_eng.ee_camera_displayname&perpage=99999&order=ASC&lang=eng
- All exhibitions combined sorted by lens?
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=1&select_output=detail_list_1&sort_row=ee_lens_eng.ee_lens_displayname&perpage=99999&order=ASC&lang=eng
Note that currently if you change lang=fin, you'll have to change _eng to _fin in the URL's too. But not in RC: The changes that are done into this system in release version are according to this documentation: http://photography-on-the.net/forum/showthread.php?t=17826#97215
This means that table names will no longer be used, instead of
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=0&sort_row=ee_photo_eng.ee_photo_header&select_output=detail_list_1&lang=eng
you use
http://photography-on-the.net/gallery/list.php?exhibition=1&revealforms=0&sort_row=header&select_output=detail_list_1&lang=eng (now gives an SQL error because the site is still in beta 5 level)
Bundy
3rd of December 2003 (Wed), 10:58
Also, can you tell me an example of the coding for specific links to different categories?
Bundy
4th of December 2003 (Thu), 07:55
I took a guess and found that the category works by adding "&category=a number" after the http://photography-on-the.net/gallery/list.php?exhibition=all.
The following example show display type "animal":
http://photography-on-the.net/gallery/list.php?exhibition=all&category=4&revealforms=0&sort_row=ee_photo_eng.ee_photo_header&select_output=4_per_row&lang=eng
Bundy
4th of December 2003 (Thu), 08:10
Pekka,
All of the specific links work great, thanks!
I'd also like to create an exhibition drop-down on an external .php file. I was hoping to have a seperate Exhibition page that I could create several direct links to various sorting and displaying pages.
Being that the drop-down list function in indexstyle5.php is child code to the index.php, what other code do you need to copy with the "ee_build_exhibition_dropdown_list" to make it work? Also, where would be the best place to save this new file? In a way, it is kind of a secondary indexstyle...
Thanks
Bundy
Bundy
4th of December 2003 (Thu), 15:10
As an alternative, would it be easier to extract the appropriate coding from the top of the list.php (including the sorting and searching info)?
I just realized that what I was really looking to do would be to have all of that information transplanted on to a secondary indexstyle page. Having it have the look of the indexstyle, would allow me to keep the other navigation elements I've added on the left margin of my main gallery page.
http://www.vancouverimageworks.com/gallery
Any suggestions on what would be the best way to create a separate page containing all of the information from the top of the list.php page?
Thanks
Bundy
Pekka
4th of December 2003 (Thu), 17:47
To cater for your needs I have some coding to do - basically the whole index page system will become a set of elements which you can place however you wish and call to other pages using embedding system.
To my opinion http://www.vancouverimageworks.com/gallery looks very good as it is. If you can hold on some time I'll make that code and then you are free to design as you will. If I would do some quick "hack" solutions for very specific needs it would not be good for developement in the long run. It is better to do something that is already very flexible and easily modified.
Bundy
4th of December 2003 (Thu), 18:23
Pekka,
Thanks for the feedback.
I think the site is almost ready to launch, though it just needs a little polishing in a few areas. I still haven't even looked at the Paypal set-up yet...
The idea of a separate search page was just something I thought of so that the main gallery index didn't get too heavy with content.
If you're already planning to have the whole index page system be a set of elements which could be placed where ever, I'll hold tight until you have time to put it together for long term use.
Do you have any time estimates on the RC release? If you need to have any advance beta testing (non-public), please let me know? I would be more than happy to test out anything you need.
Thanks
Bundy
TomKa
5th of December 2003 (Fri), 02:16
The gallery of imageworks looks very good, i like the idea of specific links to create the various pages, my compliments to Bundy !
Bundy
5th of December 2003 (Fri), 11:42
TomKa,
Thanks for the feedback!
Do you have any ideas how to separate the sort and search component from the list.php or at least the exhibition list drop-down? If so, maybe I can create a patch until Pekka has a chance to work on a longer term solution.
Bundy
Bundy
5th of December 2003 (Fri), 23:06
Pekka,
I have one last specific link questions. What is the coding for accessing a password protected exhibition?
Bundy
Bundy
6th of December 2003 (Sat), 02:01
Once again, I think I spoke too soon.
If I use the appropriate exhition number and password, you can link directly to a private exhibition.
Example:
http://www.vancouverimageworks.com/gallery/list.php?exhibition=8&pass=henrymah
Without the "&pass=henrymah", an "Exhitiion is not available" (not_available_exhib.php) error page appears for the specific echibition number .
Bundy
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.