As there are several ways of changing a Liferay DXP/7 site's logo, I wanted to ask which one is the "best" way, conventional way.

The ways I currently have knowledge about are:

  • Changing through Public Pages' Look and Feel options menu
  • Changing through custom theme by:
    • Directly referring to its path in portal-normal header's <img> tag
    • Set a custom variable to contain it's path as text

Are there other, "better" ways or these summarize all? Out of all, which is the conventional way?

3

1 Answer

Actually it depends on requirement.

In my opinion if you have logo in image form, you should upload here:

Public/private Pages> configuration > Look & Feel > Logo

You should use custom field or look & feel custom field only if you have specific requirement. Otherwise it's best.

FYI: using logo from theme portal-normal.ftl is not a good idea, as it will not allow user to upload it's logo self. As liferay is a CMS, user should have right to do so.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.