wetterring
Joined: 4 Aug 2008
Posts: 5
Hello!

How can I configure the imagegallery that two different galleries are using the same content folder?
The Two galleries are on the same server but in two different subfolders of the root folder.

Thanks!


Re: 2 different galleries -> same content folder
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7290
Yes, you can ... Read my posts here, especially the last one:
http://www.imagevuex.com/forum/viewtopic.php?t=3559

We will soon launch some dedicated instructions on how to create your own pages and/or multiple galleries.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: 2 different galleries -> same content folder
johnsteed
Joined: 16 Sep 2008
Posts: 17
Hello,

I come back with this subject. You were talking about dedicated instructions on how to create multiple galleries.

I believe understand the way to do that is using multiple configs to set severals contentfolder for each different galleries.

I can't find where the instructions are. Did you provide them or not yet ?


Re: 2 different galleries -> same content folder
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7290
You can achieve that by simply setting "contentfolder" in url. Something like:

yourgallery/?contentfolder=gallery1/
yourgallery/?contentfolder=gallery2/

If you don't want to use URL parameters, you could also hardcode index files like "gallery1.html" and "gallery2.html" simply adding the "contentfolder" parameter directly in the document. To achieve that, you should look into the template file provided called "standard.html".

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: 2 different galleries -> same content folder
johnsteed
Joined: 16 Sep 2008
Posts: 17
Thank you for this. I'll check it.

Anyway, this means the address of the "contentfolder" can be seen by visitor, directly in the URL or inside the code of the standart page.

This is something I would like to avoid. With the imagevuex V1, I used a solution, changing the call of the config.ini file (to a rename of this file) from the source code of the index.php file.

I think the solution could be something similar with the X2 if using mutilple configs, it could be possible to call the config file from a php file.

Any solution like this possible ?

Have a nice day.
John Steed.


Re: 2 different galleries -> same content folder
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7290
Accessing multiple configs will be possible in a future update coming this spring. As I suggested earlier, you can make separate container files to hide the parameters:
mjau-mjau wrote
If you don't want to use URL parameters, you could also hardcode index files like "gallery1.html" and "gallery2.html" simply adding the "contentfolder" parameter directly in the document. To achieve that, you should look into the template file provided called "standard.html".

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: 2 different galleries -> same content folder
mwr
Experienced
Joined: 8 Sep 2009
Posts: 84
I'm having a problem with those URL paramaters. My image folder under the content folder is "millvalley2009". When I use the URL http://ruthvenphotos.com/gallery/?conte ... alley2009/ it gets changed to http://ruthvenphotos.com/gallery/?conte ... ent/start/ and the image in the "start" folder appears. I notice that is the same thing that happens when I use a URL to a non-existant folder; for example http://ruthvenphotos.com/gallery/?contentfolder=xxxxx/ becomes http://ruthvenphotos.com/gallery/?conte ... ent/start/ .

What does work is this:

http://ruthvenphotos.com/gallery/#/cont ... alley2009/

mjau-mjau wrote
You can achieve that by simply setting "contentfolder" in url. Something like:

yourgallery/?contentfolder=gallery1/
yourgallery/?contentfolder=gallery2/

If you don't want to use URL parameters, you could also hardcode index files like "gallery1.html" and "gallery2.html" simply adding the "contentfolder" parameter directly in the document. To achieve that, you should look into the template file provided called "standard.html".


Re: 2 different galleries -> same content folder
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7290
Well, perhaps we are speaking of a few different things here, but let me explain what happens:

This is a normal URL ->
ruthvenphotos/gallery/

This is a normal URL, with the SWFAddress javascript enabled, which displays the PATH to the file or folder you are visiting after the # character ->
ruthvenphotos/gallery/#/content/folder/
You can disable the SWFAddress if you like from admin -> settings.

This is a normal URL, but with some parameters applied ->
ruthvenphotos/gallery/?contentfolder=content1/

Now as you understand, if you have added URL parameters to a link, and use the SWFAddress(which is default), you might get something like this:
ruthvenphotos/gallery/?contentfolder=content1/#/content1/start/
[URL+PARAMS+#CURRENT_PATH]

Regarding the image in the startfolder, this is in your settings. If you have set a specific startfolder in your config, this will not change by simply changing the contentfolder.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: 2 different galleries -> same content folder
winph
Experienced
Joined: 19 Jul 2008
Posts: 127
is it possible to have 2 different config file for this?
i like the idea of 2 different content folder but is it possible to have different settings for each content folder?


Re: 2 different galleries -> same content folder
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7290
winph wrote
is it possible to have 2 different config file for this?
i like the idea of 2 different content folder but is it possible to have different settings for each content folder?


Good question - Currently you can not use multiple settings/config files, but you can apply multiple theme files. For example:

gallery/?contentfolder=content1/&theme=gardener
gallery/?contentfolder=content2/&theme=zanzibar

Of course, it would be desirable to be able to assign multiple settings files also, and we have this planned for a major release coming this autumn. That would allow you to change many core features on a per-gallery basis, and not only thematic settings. In addition, the "contentfolder" parameter itself could be set in the settings file, so all settings can be consolidated there.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: 2 different galleries -> same content folder
winph
Experienced
Joined: 19 Jul 2008
Posts: 127
mjau-mjau wrote
Good question - Currently you can not use multiple settings/config files, but you can apply multiple theme files. For example:

gallery/?contentfolder=content1/&theme=gardener
gallery/?contentfolder=content2/&theme=zanzibar

Of course, it would be desirable to be able to assign multiple settings files also, and we have this planned for a major release coming this autumn. That would allow you to change many core features on a per-gallery basis, and not only thematic settings. In addition, the "contentfolder" parameter itself could be set in the settings file, so all settings can be consolidated there.


wow this is great news.


 
Imagevue Forums HomeForum  View topic - 2 different galleries -> same content folder11 posts