掲示板

Override Footer

6年前 に Olga S によって更新されました。

Override Footer

Junior Member 投稿: 26 参加年月日: 17/04/17 最新の投稿
Hi everyone!
I need to override footer in Liferay dxp, blue box where "Powered By Liferay" is displayed.
I was thinking that I can create fragment and override is but I could not find appropriate host OSGI bundle.
I checked the theme, but could not find it either.

Can anyone help me with that?
Thanks in advance!
thumbnail
6年前 に Olaf Kock によって更新されました。

RE: Override Footer (回答)

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
It's indeed in your theme and you should change it there.

How to tell? Download Sourcecode, then
grep -r "Powered by" srcdirectory
This reveals a hit in Language.properties
powered-by=Powered by

With this knowledge, do
grep -r powered-by srcdirectory | grep -v Language
(to eliminate all the Language*.properties hits, where it's translated into other languages) and you'll find some hits in the classic theme's portal_normal.vm and portal_normal.ftl

Assuming you have your own theme: Make sure that this line is not in your theme's portal_normal.* file. If you don't have your own theme: Create one, if only to make this change in a maintainable way.
6年前 に Olga S によって更新されました。

RE: Override Footer

Junior Member 投稿: 26 参加年月日: 17/04/17 最新の投稿
Hello Olaf!
I have created my custom theme and and found all occurrences of footer in templates (in node_modules\liferay-frontend-theme-unstyled\templates\portal_normal.ftl and ***.vm and node_modules\liferay-frontend-theme-classic-web\templates\portal_normal.ftl).
After I deployed it and applied the theme to the page it worked!!!


Thanks!