Mobile Plone Site Version?

1 message Options
Embed this post
Permalink
Russell Michell

Mobile Plone Site Version?

Reply Threaded More More options
Print post
Permalink
Hi folks,

I wanted to ask if any of you have managed to implement a "mobilezed"
version of your website, with the content managed via Plone?

Specifically I wanted to know if there were any native Plonish ways of creating a mobilized version of an existing Plone site.
My task is to replicate (not duplicate) a subset of our existing CMS
content but render it for mobile devices in XHTML-MP without the
Desktop-specific CSS, JS and all the million-and-one <div>'s Plone (2.1.3)
uses.

I was thinking along the following lines (and that perhaps the directory
structure should match that available to Desktop users as well):

1: Create a dir in my site root called 'mobile' to which all mobile
content will be auto-directed on the server-side.
2: Create a single ZPT Template that renders only for the URL "/mobile".
3: The template uses an XHTML-MP DTD and W3C xhtml namespace and imports
the corresponding Plone content into the <body> of this ZPT template,
something like this:

<p><tal:block replace="structure here/corresponding/content/getText">text
from another completely different page here</tal:block></p>

Further, if I duplicate the directory structure I *should* be able to
import corresponding content from the Desktop version into the mobile
version, doing something like this: (Treat this as pseudo-code)

<p define="page_req here/absolute_url; split_me python:
page_req.split('mysite')[1];">
    <tal:block replace="structure portal_url/split_me/getText">
    text from another completely different page outside of my "mobile"
directory here
    </tal:block>
</p>

While the first method works fine in another circumstance I'm already
using where imported content is in the same folder (hence use of the
"here" keyword) - here though, I have a "mobile" directory, where I'm
trying to import content from above/outside, and the getText method won't
work.

Any ideas of how I can have getText work? Or another way of reproducing
existing content in another directory, without in the future editing two
versions of the same content (desktop and mobile) every time some content
changes? Suggestions more than welcome :-)

I'm using Zope 2.8.6, Plone 2.1.3, Python 2.3.5 on Linux.

Thanks a lot for your time,
Russ







--
Russell Michell - GeoNet Web Developer

www.geonet.org.nz / www.gns.cri.nz
[hidden email]
+64 (0)4 570 4761
+64 (0)21 134 2459

GNS Science
1 Fairway Drive
Avalon
Wellington
New Zealand

PO Box 30-368
Lower Hutt
New Zealand

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug