Page 1 of 1

Using different admin folders with admin

Posted: 25 Nov 2006, 17:08
by andrew76
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 :)

Posted: 25 Nov 2006, 18:53
by andrew76
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.

Posted: 29 Nov 2006, 00:08
by mjau-mjau
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)

Posted: 29 Nov 2006, 08:27
by andrew76
ok, thanks :)

Posted: 29 Nov 2006, 08:56
by globetrotter
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/ :?

Posted: 03 Dec 2006, 00:04
by mjau-mjau
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.