[opencms-dev] Load templates dynamically

R. Jonyo richjo2000 at gmail.com
Thu Jul 21 08:04:59 CEST 2011


Thank you all for your contributions, hope this helps someone else who may be
developing a mobile site or using multiple templates.


regards,
Richard



Daniel-381 wrote:
> 
> Choose different template file base on user agent.
> 
> <%
> String ua = request.getHeader("User-Agent");
> if(ua.indexOf("iPod")> 0 || ua.indexOf("iPad") > 0 ){
> %>
> <cms:include file="index-html5.jsp" cacheable="false" />
> <%}else{%>
> <cms:include file="index-flash.jsp" cacheable="false" />
> <%}%>
> 
> 
> 2011/7/5 Mario Jäger <m.jaeger at alkacon.com>
> 
>> Hi,
>>
>> I am not sure if I understand your question right. Using the "template"
>> property you can set a template quite dynamically.
>>
>> Kind Regards,
>> Mario.
>>
>>
>>
>> Am 16.06.2011 11:04, schrieb R. Jonyo:
>> >
>> > Any one knows how to load templates dynamically on JSP?
>>
>>
>> --
>> -------------------
>> Mario Jäger
>>
>> Alkacon Software GmbH  - The OpenCms Experts
>> http://www.alkacon.com - http://www.opencms.org
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
View this message in context: http://old.nabble.com/Load-templates-dynamically-tp31858582p32105073.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list