Search…

X3 Photo Gallery Support Forums

Search…
 
wetterring
Topic Author
Posts: 5
Joined: 04 Aug 2008, 10:15

2 different galleries -> same content folder

25 Aug 2008, 11:16

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!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

25 Aug 2008, 12:25

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.
 
johnsteed
Posts: 21
Joined: 16 Sep 2008, 08:57

25 Jan 2009, 19:25

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 ?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

29 Jan 2009, 07:53

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".
 
johnsteed
Posts: 21
Joined: 16 Sep 2008, 08:57

29 Jan 2009, 08:23

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

31 Jan 2009, 01:36

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".
 
mwr
Experienced
Posts: 84
Joined: 08 Sep 2009, 20:57

10 Sep 2009, 19:35

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".
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

14 Sep 2009, 09:46

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.
 
winph
Experienced
Posts: 236
Joined: 19 Jul 2008, 05:07

15 Sep 2009, 03:36

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

15 Sep 2009, 11:09

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.
 
winph
Experienced
Posts: 236
Joined: 19 Jul 2008, 05:07

16 Sep 2009, 11:05

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.