Creating different default galleries in the same site

edited November 2012 in How do I?
I am using minishowcase to display images from one of three different galleries. I have configured it so that one of the galleries is the default. I would like to be able to configure it so that I could access the galleries from multiple entry points, so that each entry point would display a different default gallery. Is it possible to configure minishowcase in this way?

I know that i could install multiple instances of minishowcase (each with a separate gallery and a separate default selection), but that would seem to be overkill, and a bit wasteful. Does anyone know of a "cleaner" solution?

Thank you.
Tagged:

Comments

  • You can load the desired gallery by adding a hash and the gallery name to the url. So for example, to immediately load the "venezuela" gallery, add #venezuela to the url:

    http://minishowcase.net/demo/#venezuela

    To immediately load the "my pictures" gallery, just add #my_pictures to the url:

    http://minishowcase.net/demo/#my_pictures

    Hope that helps you.
  • Thank you, Victor!
  • That worked perfectly! Thanks.
  • What does multiple galleries mean here? Is it the folders under "galleries" or different "galleries" folder?
    Suppose I have a structure, such as "galleries/f1" "galleries/f2" and I want to load f2 first, then I'd do http://whatever/#f2 ? Because it does not work for me, so obviously I got it wrong.
  • @mehturt: it means you have more subfolders in you galleries folder and want your user to click on a link and get the desired gallery opened as default one.
  • Hi Victor,
    I have created a site with your scripts, thanks so much for the awesome program. I put whole files under GH folder which is under my domain name/specials/GH.
    the url is http://mydomain/specials/GH/, I have followed what you instructed adding a hash to 1960s folder which is under galleries folder, GH/galleries/1960s.
    Added the hash mark the gallery name to the url like http://mydomain/specials/GH/#1960s, Because it does not work for me, so obviously I got it wrong.
  • Hi Victor,
    Could I get a little tip of fixing my problem from you? Much appreciated!

    Beckmann
  • Hi my friends,
    Could I get any help from the forums to point out what was it wrong I made?

    Thanks a lot.

    Beckmann
  • Hi Beckmann,
    1. please be more patient.
    2. can you please post some information about your server? like the url and that you are using the subgallery plugin ;)
  • Hi Sebastian,
    Thanks for your response. These are my hyperlinked images I tried to let users clicking on each image to load the specific gallery. Here are the html code of hyperlinked images:
    • image
    • image
    • image
    • image
    • image
    • image
    I have uploaded all files of minishowcase to ghPrints folder in the server like followings:
    1. domain.com/specials/ghPrints (containing all minishowcase files)
    2. In the ghPrints folder I have created sub folders under galleries folder
    1.1960s
    2.1970s
    3.1980s
    4.1990s
    5.2000s
    6.Graphic_Cards
    These folders that I'd like users be able to load desirable gallery by clicking on specific
    year. For example: user clicks on the hyperlinked image of 1960s above (html code) to load the gallery 1960s. Clicks on the hyperlinked image of 1970s to load the gallery 1970s etc..

    I have followed Victor's instruction: Added the #mark before the folder 1960s, "#1960s" and added "#1960s" to the url "http://domain.com/specials/ghPrints/#1960s". It is not working, not sure what else I need to do. Any helps you provide will be greatly appreciated!

    Beckmann

  • Hey Beckmann,

    I've known what you want to archieve... i just wanted to know that you are using version (v09b142) and the (unsupported) subgalleries.
    I'll look into the code to fix your problem anyway ;)

    Sebastian
  • edited March 2013
    Yes Sebastian. After I downloaded this lastest version, I got errors while run this program. I found the thread to fix them which I have posted the url how to fix those errors in this forum. I have replaced ereg_ to replace_.

    Thank you so very much.

    [Double-Post:]
    while reading your response at the second time. I thought probably I didn't make my questions early enough to you. It might be missing leading you. The main problem I tried to fix was making the hyperlinked image to point to the desirable gallery like: clicking on the link of 1960s of photo to load 1960s gallery which the 1960s folder is under galleries folder and clicking on the link of 2000s of photo to load 2000s gallery which the 2000s folder is under galleries folder etc..., I didn't define them as the sub-gallery, but they are indeed sub folders are inside of galleries folder. Not sure what is the relationship of the definition between sub-galleries and sub folder which are under galleries folder? Hopefully my questions are not mis-leading you, but please let me know if I was misleading you.

    Greatly appreciated!

    Beckmann
  • edited March 2013
    @begeiste please edit your multi-posts and merge them if possible!
    I would really appreciate seeing your gallery to solve this problem. If your server is private send me a pm.
    Btw: have a read
  • edited March 2013
    Hi Sebastian,
    Here is the url at my site at
    http://amsegen.com/specials/ghPrints/index.php . You can click on the image above 1960s, it didn't load the 1960s gallery. I have added the hash sign to the 1960s folder like "#1960s" inside of galleries, and added add #1960s to the url http://amsegen.com/specials/ghPrints/#1960s for the hyperlinked image 1960s. I've got "there are no images in this gallery..." error.

    Thank you so very much

    Beckmann
  • PM means Private Message.
  • Got it. Thanks again.
  • You must not use "#" in gallery names.
    http://amsegen.com/specials/ghPrints/#1990s is working isn't it?
  • edited March 2013
    Hi Sebastian,
    It looks like just adding # the actual url: http://amsegen.com/specials/ghPrints/#2000s?

    After I have put all hyperlinks, it only works when you click on one specific year. For example: clicking on the image of 2000s, it loads own gallery. But on that 2000s gallery page, you cannot load other gallery when you click on the image of 1990s. The hyperlinks are all disabled. Clicking thru each hyperlinked image, nothing happened.

    Beckmann
  • I did'n get your last comment. Could you rephrase it?
  • Hi Sebastian,

    After I have put all hyperlinks, it only works when you click on one specific year. For example: clicking on the image of 2000s, it loads own gallery. But on that 2000s gallery page, you cannot load other gallery when you click on the image of 1990s. The hyperlinks are all disabled. Clicking thru each hyperlinked image, nothing happened.

    Beckmann
  • edited March 2013
    You should change your links to the following:
    <a href="javascript:" onclick="setGallery('1980s',false);">
    instead of <a href="http://amsegen.com/specials/ghPrints/#1980s">
    and of course replace your gallery name (here 1980s) with the desired one.
  • Much appreciated Sebastian! The gallery site works just like charm. Thanks again Sebastian, Vielen Danke!

    Beckmann
  • You're welcome Beckmann.
    Genieße die Nacht ;)

    Best regards
    Sebastian
  • Du auch!
Sign In or Register to comment.