How about a theme specific for mobile/pda users? Depending the useragent and/or the URI (mobile.example.com) a lighter stylesheet (or theme) could be sent to the client. I dont know if this could be done within a theme and apache config or that it would make more sense to make a general module?

Any takers to make a PDA friendly theme or extension on a theme for drupal.org (the site)?

Comments

killes@www.drop.org’s picture

Have a look at the "mobile" style sheet for phptemplate.theme. I am using it at vdst.net/wap, Adrian uses it at http://mobile.oasismag.com

bertboerland’s picture

thanks. that one seems nice. I would like to make some instructions available on how to give the specific page to specific devices. this can be done by using a URL (mobile.example.com, example.com/wap) as both of you did but I would like to be able to give it to useragents as well wit rediction to a specific url

So I think somewhere code like should make it to a theme/drupal .htaccess :

#
# Once before any mod_rewrite code
rewriteEngine on
#
#Browser redirects For pda-based browsers
#
# Windows CE and Pocket PC
rewriteCond %{HTTP_user_agent} Windows\ CE [NC,OR]
# Handspring Blazer Browser
rewriteCond %{HTTP_user_agent} Blazer [NC,OR]
# RIM Devices
rewriteCond %{HTTP_user_agent} Elaine [NC,OR]
# WAP Browsers
rewriteCond %{HTTP_user_agent} ^WAP [NC,OR]
# AvantGo Service
rewriteCond %{HTTP_user_agent} AvantGo [NC,OR]
# Lynx Text Browser
# Lynx is optional since it is used as well for cron.php..?
# rewriteCond %{HTTP_user_agent} ^Lynx/ [NC]
# not to sure about the regexpr. untested but close?
rewriteRule ^([^/]*)/(.*) /$1/mobile/$2 [R=301,L] 

is this the way you did it?

Gunny-1’s picture

"look at the "mobile" style sheet for phptemplate.theme"

Where is the stylesheet located in the cvs repository, i looked here

http://cvs.drupal.org/viewcvs/drupal/contributions/theme-styles/phptempl...

but it is not available

moonthedog’s picture

I am html friendly, but not much else. Is there anywhere that provides a more detailed walk-through for an auto-sense of browser type (e.g PocketIE, WAP, etc)?

kozuch82’s picture


"look at the "mobile" style sheet for phptemplate.theme"

Where is the stylesheet located in the cvs repository, i looked here

http://cvs.drupal.org/viewcvs/drupal/contributions/theme-styles/phptempl...

but it is not available

He meant probably http://cvs.drupal.org/viewcvs/drupal/contributions/themes/mobile/, as the "mobile style sheet" is actually a theme itself...

sgwealti’s picture

Assigned: Unassigned » sgwealti
Category: feature » support

This sounds exactly what I'd like to do with my site. I'd like to have a subdomain mobile.mysite.com that would display a mobile-themed version of my site. I'm not quite sure where to start though. Does anyone have more detailed information on how to do this?

This is how I would want to go about it:

1. Download and install mobile theme.
2. Set up mobile.mysite.com subdomain.
3. Point mobile.mysite.com to ??? not sure what to do at this point

cosmicdreams’s picture

Component: accessability » usability
Priority: Minor » Normal

I'd just like to give this a bump and bring this to the attention of our newly motivated user experience team.

alpritt’s picture

Component: usability » accessibility
Category: support » feature

This is accessibility because it is about enabling access to your site on different devices. Not really a support request either.

This is an important issue, but I'm inclined to postpone it until (a) we have the desktop in a better state and (b) we know what is happening with the mobile market. I rather suspect we will see some experimentation in contrib over the next year.

Anonymous’s picture

Project: » Drupal core
Version: » 7.x-dev
Component: accessibility » usability
Anonymous’s picture

The user experience project is closing so this issue is being moved to the usability component under the Drupal project

cosmicdreams’s picture

Component: usability » base system
Issue tags: +Usability

To me this issue is somewhat satisfied by Stark in Drupal 7. Since the creation of this issue, many contributed themes address this area of handling themes for mobile devices.

Yet, I'm not sure if the original question has been answered fully. Is there a default drupal theme that works well with mobile devices?

RobLoach’s picture

Version: 7.x-dev » 8.x-dev

Instead of a whole new theme for core, might be better to add mobile CSS media queries to existing themes:
http://www.w3.org/TR/css3-mediaqueries/

stevector’s picture

The mobile initiative is working in this direction: http://groups.drupal.org/mobile/drupal-8

RobLoach’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Get those breakpoints going. For alternative dedicated mobile themes, consider something like https://www.drupal.org/project/mobile_theme .

bertboerland’s picture

2004 says thank you for closing this one! :-)