Search…

X3 Photo Gallery Support Forums

Search…
 
andrew76
Experienced
Topic Author
Posts: 46
Joined: 04 Oct 2006, 13:46

Using different admin folders with admin

25 Nov 2006, 17:08

A site I'm building for a client of mine has english and spanish versions.

The names on the categories on the main menu need to be in different languages, so to achieve this in the following structure:

content-en/portfolio/Animation
content-en/portfolio/Corporate
content-en/portfolio/Editorial
content-en/portfolio/Illustracion
content-en/portfolio/Signs

Then the same struture with the names in Spanish

content-es/portfolio/Animacion
content-es/portfolio/Editorial
content-es/portfolio/Ilustracià³n
content-es/portfolio/Imagen Corporativa
content-es/portfolio/Seà±alizacià³n

I set up two config.ini files, each pointing to a different content folder (content-es and content-en)

The gallery works fine.

However, I cannot get the admin to see any of the folders.

I set up the passwords.php file as follows:

<?php
$data['password1'] = 'content-es/portfolio/';
$data['password2'] = 'content-en/portfolio/';
?>

replacing 'password1' and 'password2' with my actual passwords.

I can login fine, and I can see the message "CURRENT USER IS RESTRICTED TO IMAGEFOLDERS WITHIN GROUP CONTENT-ES/PORTFOLIO/"

However no folders are listed.

Any ideas?

Thanks :)
 
andrew76
Experienced
Topic Author
Posts: 46
Joined: 04 Oct 2006, 13:46

25 Nov 2006, 18:53

Just for the record, I found a workaround. I duplicated the admin folder - so I now have 2:

admin-english
admin-spanish

I then set the appropriate path in each of the adminconfig.ini and password files, and it works.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

29 Nov 2006, 00:08

Your workaround is a fair workaround.

The reason why it wouldnt work, is because the admin is allways linked up to a certain contentfolder. You however solve it another way by using URL parameters:

yourgallery/admin/ (would referr to your default contentfolder in adminconfig)
yourgallery/admin/?contentfolder=content-es/ (would referr the alternative contentfolder)
 
andrew76
Experienced
Topic Author
Posts: 46
Joined: 04 Oct 2006, 13:46

29 Nov 2006, 08:27

ok, thanks :)
 
User avatar
globetrotter
Imagevue Expert
Posts: 844
Joined: 18 Oct 2006, 13:16

29 Nov 2006, 08:56

yourgallery/admin/ (would referr to your default contentfolder in adminconfig)
yourgallery/admin/?contentfolder=content-es/ (would referr the alternative contentfolder)
I thought it should be: yourgallery/admin/?folder=content-es/ :?
Rene
http://www.globetrotternet.nl/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Dec 2006, 00:04

globetrotter wrote:
yourgallery/admin/ (would referr to your default contentfolder in adminconfig)
yourgallery/admin/?contentfolder=content-es/ (would referr the alternative contentfolder)
I thought it should be: yourgallery/admin/?folder=content-es/ :?
No, thats to referr an alternate standalone image folder. He is trying to referr an entire alternate contentfolder with groupfolder and imagefolder structure.