<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Droid Sans'; font-size:10pt; font-weight:400; font-style:normal;">Hello  Achim,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>direct edits still work as expected, yesterday.. today the direct edit somehow disappeared, although no settings or template code had changed... <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Don't worry about confused editors :-), we have no choice in this case and there is since some time a "common" and "individual" space in the vfs, where content in "individual" overwrites content from "common".<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>SSO in our case means that the browser has (if the user is logged-in) a certain cookie, and the template of the site checks in the DB whether the cookie corresponds to a valid session and reacts appropriately.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I guess it could be interesting to have a document (or seminar :) ) about best practices how to built private websites with OpenCms, which are linked to an erp-database :-)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Thanks for your suggestions,<br>
Yves<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Wednesday 29 April 2009, a.westermann@alkacon.com wrote:<br>
> Hi Yves,<br>
><br>
> good you found a way. But it sounds a bit odd. You should take care<br>
> if direct edit still works with that modified template. Sound strange<br>
> because you are divorcing uri and content transparently.  Editors<br>
> might get confused.<br>
><br>
> Isn't it so that when logging into OpenCms by SSO you will contact<br>
> some login jsp that will  cause a redirect to request parameter<br>
> "requestedresource"? That would be  another point to go to the<br>
> correct target depending on the user logged in.<br>
><br>
> Kind Regards,<br>
> Achim.<br>
><br>
> -------------------<br>
> Achim Westermann<br>
><br>
> Alkacon Software GmbH  - The OpenCms Experts<br>
> http://www.alkacon.com - http://www.opencms.org<br>
><br>
> Visit OpenCms Days 2009 Conference and Expo<br>
> June 15 to June 16 2009 in Cologne, Germany<br>
> http://www.opencms-days.org<br>
><br>
> Yves Glodt wrote:<br>
> > I found the solution, reading the documentation helped ;)<br>
> ><br>
> > <cms:include element="body" editable="true" page="${replacedPage}"<br>
> > /><br>
> ><br>
> > does the trick.<br>
> ><br>
> > When replacedPage == null it shows the initially requested page,<br>
> > when it's not null, it shows the custom document from the vfs-path<br>
> > ${replacedPage}<br>
> ><br>
> > OpenCms has impressed my yet another time.<br>
> ><br>
> > On Wednesday 29 April 2009 10:26:23 Yves Glodt wrote:<br>
> >> On Wednesday 29 April 2009 10:23:12 Yves Glodt wrote:<br>
> >>> Hello,<br>
> >>><br>
> >>> I have the following situation, consider the following document<br>
> >>><br>
> >>> /sites/mysite.com/en/contact.html<br>
> >>><br>
> >>> This document is accessible by the "Guest user", without<br>
> >>> OpenCms-login<br>
> >>><br>
> >>> Now I have a situation where a certain (non-opencms) user is<br>
> >>> logged in by single-sign-on, and I would like that when the user<br>
> >>> requests the mentioned document, OpenCms would, instead of the<br>
> >>> content of contact.html, show the content from<br>
> >>> /sites/mysite.com/priv/${userid}/en/contact.html<br>
> >>><br>
> >>> All this of course without that the URL changes or any redirect<br>
> >>> happens.<br>
> >>><br>
> >>> Note that /sites/mysite.com/priv/ is not accesible for guest<br>
> >>> users, I have a special OpenCms-user which I log in from my<br>
> >>> template which can retrieve content from this location.<br>
> >>><br>
> >>> I think I would somehow have to intercept <cms:template<br>
> >>> element="content"> ?<br>
> >><br>
> >> I meant to intercept <cms:include element="body"  />, of course,<br>
> >> which seems to be possible with the page attribute...<br>
> >><br>
> >>> And make it retrieve the content from another document from the<br>
> >>> vfs<br>
> >>><br>
> >>> How would you do this?<br>
> >>><br>
> >>> Best regards,<br>
> >>> Yves<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>