Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Switching mobile themes based on urls in plone.

Project Description

zettwerk.mobiletheming

Switching mobile themes based on urls

Usage

Install zettwerk.mobiletheming via quickinstaller. A new control panel entry makes it possible to change settings.

Enter the hostnames on which the mobile theme should be applied. Choose the diazo theme to use for selected URL.

There is also some settings for “redirecting urls”, it works like this:

  1. A javascript is installed in portal_javascript
  2. This javascript redirects urls to the url set in the control panel.
  3. Redirects works for mobile devices.
  4. You can choose if you want to redirect iPads and tablets, too.
  5. There is a setting

See this example with the zettwerk.mobile theme: https://www.youtube.com/watch?v=Q2ID86XkiQQ

Generic Setup

This product also provides a GenericSetup extension for integrators to set these settings via a xml profile file. Place the file “mobiletheming.xml” in your (default) generic setup profile and change it as you need. You can also export your current settings via portal_setup -> Export. The export step is called “Mobiletheming Settings”.

Example content, taken from zettwerk.mobile:

<?xml version="1.0"?>
<settings>
  <themename>zettwerk.mobile</themename>
  <hostnames>
    <element>http://localhost:8080</element>
  </hostnames>
  <ipad>False</ipad>
  <tablets>False</tablets>
</settings>

Contributors

  • Jörg Kubaile
  • Espen Moe-Nilssen

Changelog

0.2.1 (2014-11-21)

  • Added ‘redirect to full url’ [espenmn]

0.2 (2014-07-01)

  • Added GenericSetup import/export profiles.

0.1 (2014-06-04)

  • Initial version
Release History

Release History

This version
History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zettwerk.mobiletheming-0.2.1.zip (32.6 kB) Copy SHA256 Checksum SHA256 Source Nov 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting