[opencms-dev] Site-DropDown-Menu
Anatol
opencms at recordcaster.de
Thu Jun 9 00:33:09 CEST 2005
Hi Wolfgang, hi all!
Huargh! That's all very, very complex! Your hint to change the "Start
with site" Configuration was realy not bad! :-) But only one of at least
1 million problems, and facts ... don't know, if I can descripe them
with my porley english, but I'l try it:
One important point is from which URL the user logged in. The URL
defined the place he/she was directet to. For example:
mydomain1.com -> /sites/my1/
mydomain2.org -> /sites/my2/
(its defined by the opencms-system.xml file.)
If I see it right, so has this configuration a higher priority than the
"start with site" option in the userpreferences. When our user "Karl" is
involved in the project my1 and logged in by an URL linking to
mydomain2.org than he was directed to /sites/my2, has no access and an
error occured.
Ok, normaly that should be not a big problem ... the most people will
access the system by their own URLs.
A bit more interessting is the next fact:
An example:
We have the two folders:
/sites/newes
/sites/events
For every folder is a separate group responsible: a group NEWS for the
news and a group EVENTS for the events. Only the group EVENTS has the
permission to access to the corresponding event folder and only the
group NEWS has access two the news folder - very simple ;-)
This scenario I can implement if and only if I add both groups to any of
the folders and admit access for the corresponding group (NEWS for news,
EVENTS for events) and deny access for the other one (NEWS for events,
EVENTS for news).
If I do so, I get the correct behaviour! But this approach has a big
drawback: All the groups created until now or in the future in the
opencms has to add to every protected folder ! It's stupid, extensive,
long winded and - error-prone!
I tried to solve this by using the Group Users. All the users created in
opencms are members of these group. I thought if I deny access for the
group Users and allow access for the group according to the folder, that
this could be an good solution, but the ACL is very restrict! DENY is
higher than ALLOW!
Every user logging into the cms is member of Users! If now the group
Users has no access than this user has no access too, also if he is
member of an other group which should have access to that folder.
Is there perhaps a solution for that, which I havn't seen? A little
option to set, or button to click ... ?
It would be very usefull!
Greetings
Anatol
Wolfgang Winzer schrieb:
> Hi Anatol,
>
> I think I understand your problem now. And I still stick with my
> proposed solution. I must emphasize though that I am no expert and
> neither did I confirm it through tests ;-)
>
> I imagine it happens like this: When a user (let's call him "Karl" )
> logs into opencms, the system checks Karls settings in order to
> determine where to let him start in the VFS. Karls settings say "start
> with /sites/default/" (that's what you need to change!), so it tries
> to show him /sites/default but fails because he ain't got the
> permission (you took away from him). Of course the drop-down-box
> showing your location doesn't care and still shows /sites/default/ as
> Karls location. Only when he leaves this location does it vanish
> because you removed it from opencms-system.xml.
>
> I bet you created Karl BEFORE you changed the opencms-system.xml,
> right? Well no matter, log in as Karl and change his settings as I
> already described in my first answer, that should do the trick:
> Start from Workplace > open "Preferences" (Hammer) > Workplace Tab >
> Set "Start with site" to "/"
>
> Any user created AFTER your changes in opencms-system.xml should by
> default have his setting "Start with site" set to "/sites/other", so
> another way would be to delete all old users and set up new ones.
> (just my guess)
>
> Good luck
> Wolfgang
>
> Anatol wrote:
>
>> OK, I tried to say it in other words:
>>
>> For the normal work I don't want the default-Site displayed (in the
>> admininterface). So I edit the <sites>-tag in the
>> WEB-INF/config/opencms-system.xml file and changed the
>> <default-uri>/sites/default/</default-uri> to
>> <default-uri>/sites/other/</default-uri>
>>
>> Next step is to change the persmission for that folder
>> (/sites/default/) so that only admin has access and can view it. So
>> far so good.
>>
>> But now if an users (non admin!) logged in the opencms-interface,
>> opencms tried to direct him to /sites/default/ (why?!), detect that
>> this user has no access to that folder and raises an error. :-(
>>
>> At this moment the site-dropdown-menu lists the /sites/default/-entry
>> (why?!). I've to switch to an other site (from the site-dropdown) and
>> now (!) the /sites/default - entry isn't listed anymore.
>>
>> Thats my problem - hope, it is now a bit better to understand :-)
>>
>> Greetings
>> Anatol
>>
>> Wolfgang Winzer schrieb:
>>
>>> I didn't fully understand your problem but to change the location
>>> you start with after login do:
>>> Start from Workplace > open "Preferences" (Hammer) > Workplace Tab >
>>> Set "Start with site" to "/"
>>>
>>> Regards
>>> Wolfgang
>>>
>>> Anatol wrote:
>>>
>>>> Hi all!
>>>>
>>>> In opencms-system.xml I've removed any /sites/default/ entry but if
>>>> I login the opencms system, I was directed to /sites/default/ and
>>>> this entry is still in the dropdown menue for choosing a site. If I
>>>> moved to another site and opend the site dropdown again, now the
>>>> /sites/default-entry is gone.
>>>> Tomcat was restarted and the bowser cache 's cleared - but nothing
>>>> help. I'm a bit confused!
>>>>
>>>> Has anybody a hint for my, how to remove the /sites/default entry
>>>> permanent and from the begining of login-process?
>>>>
>>>> Greetings
>>>> Anatol
>>>
>>>
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> This mail is send to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list