Page 1 of 1

2 different galleries -> same content folder

Posted: 25 Aug 2008, 11:16
by wetterring
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!

Posted: 25 Aug 2008, 12:25
by mjau-mjau
Yes, you can ... Read my posts here, especially the last one:
viewtopic.php?t=3559

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

Posted: 25 Jan 2009, 19:25
by johnsteed
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 ?

Posted: 29 Jan 2009, 07:53
by mjau-mjau
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".

Posted: 29 Jan 2009, 08:23
by johnsteed
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.

Posted: 31 Jan 2009, 01:36
by mjau-mjau
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".

Posted: 10 Sep 2009, 19:35
by mwr
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".

Posted: 14 Sep 2009, 09:46
by mjau-mjau
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.

Posted: 15 Sep 2009, 03:36
by winph
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?

Posted: 15 Sep 2009, 11:09
by mjau-mjau
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.

Posted: 16 Sep 2009, 11:05
by winph
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.