cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sparkes <pe...@didm.co.uk>
Subject Re: Mobile Website
Date Tue, 28 May 2013 11:50:31 GMT
After investigating the various options I have gone for "responsive web design". In future
I will 
design all my websites this way from scratch.

Thanks to all for your advice

Peter

On 17/05/2013 08:27, Peter Sparkes wrote:
> My thanks to all who have replied. I am currently evaluating the various options suggested
>
> Peter
>
> On 14/05/2013 09:18, Thorsten Scherler wrote:
>> On 05/14/2013 09:29 AM, Andre Juffer wrote:
>>> On 05/14/2013 09:49 AM, Peter Sparkes wrote:
>>>>
>>>> Or stylesheets
>>>
>>> Have a look at responsive web design. Instead of having different pages (HTML)
returned for 
>>> which you may use different sitemaps and/or XSL stylesheets, you could return
the same content, 
>>> but presented differently depending on the size of the screen of the device using
CSS.
>>>
>>> http://www.smashingmagazine.com/responsive-web-design-guidelines-tutorials/
>>
>> Go nuts with 
>> http://code.google.com/a/apache-extras.org/p/lenya-extras/source/browse/modules/wurfl/?r=e0ae38858b9683c4f2fa68dbb62e7c936e725f96#wurfl%253Fstate%253Dclosed

>> gives you the power of http://wurfl.sourceforge.net/
>>
>> You need the java code and then you can do:
>>
>> <map:components>
>> <map:generators>
>> <map:generator logger="sitemap.generator.wurfl"
>> name="wurfl"
>> src="org.apache.lenya.modules.wurfl.generation.WurflDeviceInfoGenerator" />
>> </map:generators>
>> <map:selectors default="wurfl">
>> <map:selector logger="sitemap.selector.wurfl" name="wurfl"
>> src="org.apache.lenya.modules.wurfl.selection.WurflSelector">
>> <!--+ | NOTE: The appearance indicates the search order. This is
>> very important since | some words may be found in more than one browser description.
>> (MSIE is | presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...") + -->
>> <browser name="android" useragent="Mozilla/5.0 (Linux; U; Android 2." />
>> <browser name="android-tab" useragent="Mozilla/5.0 (Linux; U; Android 3." />
>> <browser name="ipod" useragent="Mozilla/5.0 (iPod; U; CPU iPhone OS " />
>> <browser name="iphone" useragent="Mozilla/5.0 (iPhone; U; CPU iPhone OS " />
>> <browser name="noMobile" useragent="DO_NOT_MATCH_GENERIC" />
>> </map:selector>
>> </map:selectors>
>> </map:components>
>>
>>
>> <map:pipelines>
>> <map:pipeline>
>> <map:match pattern="device.html">
>> <map:generate type="wurfl" />
>> <map:transform
>> src="fallback://lenya/modules/wurfl/xslt/properties2xhtml.xsl" />
>> <map:serialize type="xhtml" />
>> </map:match>
>> <map:match pattern="sample.html">
>> <map:select>
>> <map:when test="android">
>> <map:read src="android.html" />
>> </map:when>
>> <map:when test="android-tab">
>> <map:read src="android-tab.html" />
>> </map:when>
>> <map:when test="ipod">
>> <map:read src="ipod.html" />
>> </map:when>
>> <map:when test="iphone">
>> <map:read src="ipod.html" />
>> </map:when>
>> <map:otherwise>
>> <map:read src="other.html" />
>> </map:otherwise>
>> </map:select>
>> </map:match>
>> </map:pipeline>
>>
>>
>> HTH
>>
>> salu2
>>>
>>>>
>>>> On 14/05/2013 07:36, Peter Sparkes wrote:
>>>>> Hi,
>>>>>
>>>>> I have a requirement to use different sitemap.xmap for mobiles depending
on the screen size.
>>>>>
>>>>> I am using 2.1.11
>>>>>
>>>>> Please, how do I do this?
>>>>>
>>>>> Peter
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>
>>>
>>
>>
>> -- 
>> Thorsten Scherler <scherler.at.gmail.com>
>> codeBusters S.L. - web based systems
>> <consulting, training and solutions>
>>
>> http://www.codebusters.es/
>


Mime
View raw message