<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mario D'Angelo schrieb:
<blockquote cite="mid000b01c6d58b$a7d6cb00$c101a8c0@pcuser" type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=us-ascii">
<div>
<p> <span lang="EN-GB">I have two Sites set:
“/sites/Provincia_di_Napoli/” and “/sites/InfoNet/”,
everything works great, but when I tried to perform a login from the
online
site for editing content it works only if the login is performed from
the site set
as default in the “opencms-workplace.xml” conf file es.: </span> </p>
</div>
</blockquote>
<br>
I am surprised about this:<br>
<blockquote cite="mid000b01c6d58b$a7d6cb00$c101a8c0@pcuser" type="cite">
<div>
<p> <span lang="EN-GB"> <br>
</span></p>
<p> <span lang="EN-GB">
cmsObject.getRequestContext().setSiteRoot("/sites/InfoNet"); </span> </p>
</div>
</blockquote>
and this:<br>
<blockquote cite="mid000b01c6d58b$a7d6cb00$c101a8c0@pcuser" type="cite">
<div>
<p> <span lang="EN-GB">
String login_redirect =
"/opencms/opencms/system/workplace/commons/displayresource.jsp?resource=/opencms/opencms/sites/InfoNet"
+ curFolder + "index.html"; //DO NOT DELETE </span> </p>
</div>
</blockquote>
<br>
It seems as if the code is written for only one of your sites. <br>
I think especially your call of setSiteRoot should be dependent on the
URL for which the login was requested.<br>
<br>
christian<br>
</body>
</html>