如何根据不同域名调用不同主题

Events happening in the community are now at Drupal community events on www.drupal.org.
cedarer's picture

根不同域名自动调用不同主题,从而实现各终端对应显示。有这样的module吗?这是否是一个思路呢。

即我用zen分别开发适合移动端和PC端的主题,比如m.xxxx.com就自动调用移动端的zen主题。

使用了moblie garland,和mobile plugin但未生效。即便生效mobile主题貌似过于单薄不能方便的支撑负载交互需求。

我用的drupal6,请各位帮忙。谢谢~!

Comments

用多站点解决

alfababy's picture

最简单的办法就是做个multisite,用同一个数据库。然后在settings.php里面通过$conf配置不同的theme就可以了。

这里有一个模块你可以看看:http://drupal.org/project/virtual_site
关于多站点的文档在这里:http://drupal.org/documentation/install/multi-site

楼上正解。

GloolsGuan's picture

楼上正解。

The creator of GLOOLS.

受教,非常感谢各位

cedarer's picture

受教,非常感谢各位

使用 ThemeKey

hooface's picture

最好的方法,应该是使用ThemeKey(http://drupal.org/project/themekey)这个模块。

huah's picture

根据设备设定主题更合适。
也就是说,访客进入你的网站,drupal识别出访客用的是什么设备,然后,转进相应的主题。

我感觉 domain

xiukun.zhou's picture

我感觉 domain 这个模块可以做到这个
http://drupal.org/project/domain

我用的是domain

Lugal's picture

虽然配置和调试很麻烦,但是对于用于不同字域名的管理很方便,包括需要的管理员权限都可以各自管理。

Bei Jing (China)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: