magento主题开发

magento的设计例外,适应不同终端 DESIGN EXCEPTIONS

日期:2016-09-07 阅读:776

magento的设计例外,适应不同终端 DESIGN EXCEPTIONS

DESIGN EXCEPTIONS
Design exceptions allow store owners to specify an alternative theme for a specific user-agent. Instead of creating separate store views for user-agents (example: iPhone), design exceptions allow store owners to override design settings of a store view, thus limiting the amount of store views that need to be managed.


For example, to use the iPhone theme you can add a theme exception where the Matched Expression would be “iPhone” and the Value would be iPhone (if that’s the name of the theme you want to use).

如果要适应不同的终端,比如iphone和ipad。可以如上图一样,在后台的default指定。template和layout一般留空。

 

<<点击返回