rafalp / Misago

Misago is fully featured modern forum application that is fast, scalable and responsive.
http://misago-project.org
GNU General Public License v2.0
2.53k stars 525 forks source link

Mobile subdomain support #121

Closed rafalp closed 11 years ago

rafalp commented 11 years ago

Instead of user-agent based detection Misago could support setting dedicated subdomain for mobile devices. For example, forum admin could define "lite" forum for mobile devices using two settings in settings.py:

MOBILE_SUBDOMAIN = 'mobi'
MOBILE_TEMPLATES = 'mobi'

Once this is set, dedicated middleware sitting after Crawler and theme middleware could override selected templates with new ones.

This feature will require few more actions in order to work correctly:

  1. Crawler handling - Crawlers will have to be redirected to "full" version upon request to make sure they don't index same content twice.
  2. MD parser and links utils will have to recognize "mobile" inner links.
  3. Current "Client Agents" functionality will have to be removed.
rafalp commented 11 years ago

In addition to that special middleware can be included to detect mobile devices and render "Go mobile!" or "Go full!" links on top of rendered pages.

rafalp commented 11 years ago

Changing for partial support in 0.3, complete support in 0.6 when schema metadata for crawlers is added.