Hi,<br><br>I am not sure what you mean exactly... If you want to access the OpenCms Workplace, as said before, it will not work (well) on a mobile client.<br><br>In case you want to create a site with OpenCms, which should have a mobile template as well, you can use something like this example as a template to detect and load a template per platform:<br>
<br><div style="margin-left: 40px; color: rgb(255, 0, 0);"><%@ page session="false" %><br><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>" %><br>
<%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>" %><br><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions">http://java.sun.com/jsp/jstl/functions</a>" %><br>
<c:choose><br><c:when test="${ fn:contains(header['User-Agent'], 'Android') or fn:contains(header['User-Agent'], 'iPhone') or fn:contains(header['User-Agent'], 'iPod') }"><br>
<cms:include page="/templateMobile.jsp" /><br></c:when><br><c:otherwise><br> <cms:include page="/templateFull.jsp" /><br></c:otherwise><br></c:choose><br></div>
<br>The real templates are then templateFull.jsp and templateMobile.jsp which you have to craft to fit your needs.<br><br>BR,<br>Yves<br><br><br><div class="gmail_quote">On 8 September 2010 08:13, Nguyen Ha <span dir="ltr"><<a href="mailto:boboha2001@yahoo.com">boboha2001@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thank Manfred.<br>
<br>
I want to access opencms via a mobile client. But let opencms understand which accessing is a mobile client to call the mobile template, what must I do?<br>
<br>
Regards.<br>
BBHa<br>
> ------------------------------<br>
><br>
> Message: 5<br>
> Date: Mon, 6 Sep 2010 20:34:25 -0700 (PDT)<br>
> From: Nguyen Ha <<a href="mailto:boboha2001@yahoo.com">boboha2001@yahoo.com</a>><br>
> Subject: [opencms-dev] Opencms with mobile version<br>
> To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
> Message-ID: <<a href="mailto:698525.87748.qm@web36506.mail.mud.yahoo.com">698525.87748.qm@web36506.mail.mud.yahoo.com</a>><br>
> Content-Type: text/plain; charset=us-ascii<br>
><br>
> Hi.<br>
><br>
> Has anybody developed opencms for mobile version?<br>
> Regards.<br>
><br>
> BBHa<br>
><br>
><br>
> <br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 6<br>
> Date: Tue, 07 Sep 2010 09:08:50 +0200<br>
> From: Manfred Schenk <<a href="mailto:manfred.schenk@zerobyte.de">manfred.schenk@zerobyte.de</a>><br>
> Subject: Re: [opencms-dev] Opencms with mobile version<br>
> To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
> Message-ID: <<a href="mailto:4C85E502.5020907@zerobyte.de">4C85E502.5020907@zerobyte.de</a>><br>
> Content-Type: text/plain; charset=ISO-8859-1<br>
><br>
> Am 07.09.2010 05:34, schrieb Nguyen Ha:<br>
> > Hi.<br>
> ><br>
> > Has anybody developed opencms for mobile version?<br>
> > Regards.<br>
> > <br>
> What do you mean by "mobile version" ?<br>
> If you want to run opencms on a mobile phone I can't see<br>
> the rationale<br>
> behind this since opencms is a server-application.<br>
> If you want to access opencms via a mobile client, then you<br>
> can do this<br>
> already with the current versions.<br>
> If you want to use the opencms-workplace while using a<br>
> mobile client,<br>
> this might be a bit difficult since the workplace is<br>
> designed for<br>
> "standard" browsers and may not support mobile browsers.<br>
><br>
> Regards,<br>
> Manfred<br>
><br>
> --<br>
> | Manfred Schenk <br>
> | born between RFC638 and RFC640<br>
> | PGP-Keys unter <br>
> |<br>
> | <a href="http://www.ZEROByte.de/pgp/" target="_blank">http://www.ZEROByte.de/pgp/</a> | WWW: <a href="http://www.ZEROByte.de/" target="_blank">http://www.ZEROByte.de/</a><br>
><br>
><br>
><br>
> ------------------------------<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br>