针对移动设备的内容管理系统
如果我想为移动设备实施CMS,应该考虑哪些要点? 例如,缩小页面尺寸,使用优化的(小)图片。还有其他想法吗?
此外,在将专为桌面浏览器设计的网页转换为易于在移动浏览器中显示的网页时,可以应用什么样的规则。
我知道移动设备的容量和属性差异很大,但仍在尝试列出一些规则。
也欢迎就此主题提出任何其他想法、建议、问题和建议。
感谢您的意见和答复。
If I want to implement CMS for Mobile Devices, what kind of points should take into account?
For example, make page size smaller, use optimized (small) pictures. Any other ideas?
Also what kind of rules can be applied while converting web-pages that WERE designed for Desktop Browsers, to the ones that are easily displayed in Mobile Browsers.
I know that Mobile Devices widely vary in there capacity and property, but still trying list out some rules.
Also any other ideas, suggestions, questions and advices are welcome on this topic.
Thanks for your opinions and answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的前言,我在下面列出的所有内容都是我工作的公司的主要产品已经做过或已经制定出解决方案,这个答案的整体目标是给你指点。
识别手机
当将移动设备作为网络环境进行处理时,正确识别手机是绝对必要的。这应该是最优先的。以下是识别手机及其功能的几个问题:
userAgent.contains("iPhone")
检测方案。已经有大量网络机器人和其他应用程序包含iPhone
在其用户代理字符串中,因此您会错误地识别它们。创建实际页面
值得庆幸的是,这是人们已经同意的事情,在创建页面时,您应该使用 XHTML-MP。但是哦,人们多么希望事情能这么简单...
span
元素时,我们还发现了错误的排序。哦,由于某种原因,表格真的很难。基本上,您必须减少标记/样式技巧。将所有这些添加到正常的 CMS 功能(安全性、内容管理和转换、缓存、模块化、访问者跟踪等)之上,您应该对一切如何影响一切以及您真正的情况有某种了解应该考虑自己制作的成本。
事实上,尽管这有点违背 SO 的一般精神,但我强烈建议您获取一个现成的解决方案例如我们的,并使用它来满足您的网站建设需求。毕竟,我们的产品经过了七年的专业开发。
Short foreword, all the things I'm listing below are something the main product of the company I work for already does or has worked out a solution for, the whole goal of this answer is to give you pointers.
Identifying the phone
When dealing with mobile as a web context, it's absolutely imperative you identify the phone correctly. That should be the highest priority. Here's couple of issues with identifying phones and their features:
userAgent.contains("iPhone")
detection scheme. There's already loads of web bots and other applications which containiPhone
in their user agent string and thus you'd identify them incorrectly.Creating the actual pages
Thankfully this is something people have agreed upon and when creating the pages, you're supposed to use XHTML-MP. But oh how one would wish things were this easy...
background-color
for block elements. Or header tags. We've also seen incorrect ordering ofspan
elements when there's several in a row. Oh and for some reason tables are really hard. Basically, you have to go low on markup/styling tricks.Add all these on top of normal CMS features (security, content management and transformation, caching, modularity, visitor tracking and whatnot) and you should have some sort of picture of how everything affects everything and how you really should consider the cost of making your own.
In fact even though this is sort of against the general spirit of SO, I'd strongly suggest for you to get a readily made solution such as ours and use that instead for your site building needs. After all, our product has seven years worth of specialized development under its hood.
我们使用的几个...
针对移动设备的 cms 应该能够检测设备类型并检测(或拥有屏幕分辨率的数据库),以便可以适当缩放内容(尤其是图像)。
渲染引擎还应该能够确定设备是否可以处理 HTML 或 WAP 并适当地切换标记语言。
输出的分页功能相对于渲染非常大的页面(如果内容图像很大)也很有帮助。
如果实际上存在相应的大型网站,那么与相应网站 CMS 的干净集成(因此内容不需要双重生成)也很有帮助。
A couple that we used ...
A cms targeted for mobile devices should be able to detect the device type and detect (or have a database of) screen resolutions so that content, particularly images, can be scaled appropriately.
The rendering engine should also be able to determine if the device can handle HTML or WAP and switch markup languages appropriately.
Paging capability on the output as opposed to rendering very large pages (if content mages are large) is also helpful.
Clean integration with the corresponding web site CMS (so content doesn't need to be dual produced) is also helpful if tere is, in fact, a corresponding large form web site.