2012-07-30 54 views

回答

2

当您已经将主题应用于网站(社区)时,将显示此警告消息,但现在该主题目前未部署。这可能是由于最近对主题所做的更改而发生的。请尝试恢复您所做的更改,并确保在部署时您的主题已成功注册。

如果问题仍然存在,请告诉我们错误日志语句或您对主题做了哪些确切的更改。


我认为你的主题已经部署到玻璃鱼,但没有注册到Liferay。

可能出现在部署过程中出现问题,可以请你在你的portal-ext.properties相应地设置这些属性文件

' 
# 
# Set this to true to enable auto deploy of layout templates, portlets, and 
# themes. 
# 
auto.deploy.enabled=true 

# 
# Set the directory to scan for layout templates, portlets, and themes to 
# auto deploy. 
# 
auto.deploy.deploy.dir=${liferay.home}/deploy 

# 
# Set the directory where auto deployed WARs are copied to. The application 
# server or servlet container must know to listen on that directory. 
# Different containers have different hot deploy paths. For example, Tomcat 
# listens on "${catalina.base}/webapps" whereas JBoss listens on 
# "${jboss.server.home.dir}/deploy". Set a blank directory to automatically 
# use the application server specific directory. 
# 
auto.deploy.dest.dir= 
auto.deploy.default.dest.dir=../webapps 
auto.deploy.geronimo.dest.dir=${org.apache.geronimo.home.dir}/deploy 
auto.deploy.glassfish.dest.dir=${com.sun.aas.instanceRoot}/autodeploy 
auto.deploy.jboss.dest.dir=${jboss.server.home.dir}/deploy 
auto.deploy.jetty.dest.dir=${jetty.home}/webapps 
auto.deploy.jonas.dest.dir=${jonas.base}/deploy 
auto.deploy.resin.dest.dir=${resin.home}/webapps 
auto.deploy.tomcat.dest.dir=${catalina.base}/webapps 
auto.deploy.weblogic.dest.dir=${env.DOMAIN_HOME}/autodeploy 

'

配置此GlassFish特有的之后,你应该看到日志消息说

1主题为mytheme注册成功。

+0

我只是在_diffs/custom.css中更改样式来检查更改并且它包含“body {display:none;}”,并且它不会更改。 – test1604 2012-07-31 03:45:42

+0

您的更改可能不是您面临的问题的原因。 你需要检查的几件事: 1. custom.css应该在_diffs/css/custom.css中,但是你在说_diffs/custom.css。你能重新检查一下吗? 2. custom.css已添加到main.css中 3.请重新启动服务器并删除浏览器chache。这是为了确保您清除了缓存。 – Sharana 2012-07-31 04:09:49

+0

我很抱歉,我写错了,其实它在_diffs/css/custom.css中 – test1604 2012-07-31 04:15:56

0

如果您正在使用DEV/QA环境中工作,请更新portal-ext.properties文件:

包括-和倍率= portal-developer.properties

如果是在分期/正在尝试删除/css文件夹中的YourThemeName/服务器上的目录在部署更新的版本之前。