留言板

Style the control panel

Daniel Wilmes,修改在12 年前。

Style the control panel

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
I have developed a theme which works well. I wanted to see about applying custom css to the control panel.

I am using liferay 6.0.6.

Thanks,
Daniel
thumbnail
jelmer kuperus,修改在12 年前。

RE: Style the control panel

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
I haven't tried it myself but supposedly you can create your own theme for the control panel, just like you create any other theme. Then you reference it in portal.properties under the control.panel.layout.regular.theme.id key
thumbnail
Leo Pratlong,修改在12 年前。

RE: Style the control panel

Expert 帖子: 363 加入日期: 10-7-6 最近的帖子
You can also put your theme in a hook, under the folder: docroot/html/themes/control_panel (something like that. I haven't the source code right now).
But if you find a better way, I'll be glad to know it emoticon.
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Style the control panel

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Deploying a hook only makes it available. You'll still have to set the control.panel.layout.regular.theme.id
to specify which theme to use in the Control Panel. emoticon
thumbnail
jelmer kuperus,修改在12 年前。

RE: Style the control panel

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
i think he means that you can override the built in control panel theme with a jsp hook. since it is also included in the ROOT war. That's true and would be another option here
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Style the control panel

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Oh. That you've mentioned it, that's true. I've never thought about hardcoding a properties value into a code.emoticon