Monday, September 14, 2015

Change logo on the header section (Left Corner)

Logo on hybris gets diaplayed on the header in the left corner with the following tag in header.tag file.

<cms:component component="${logo}" class="siteLogo" element="div"/> 

But this logo comes from the database.

Hence if you want to change the logo, you need to use the below impex scripts.

INSERT_UPDATE Media;$contentCV[unique=true];code[unique=true];realfilename;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator];mime[default='image/jpeg'];folder(qualifier)[default='images'];altText ;;/images/theme/logo-hybris.png;logo-hybris.png;$siteResource/images/theme/logo-hybris.png;image/png;;"hybris Accelerator"

UPDATE SimpleBannerComponent;$contentCV[unique=true];uid[unique=true];$picture[lang=$lang] ;;SiteLogoComponent;/images/theme/logo-hybris.png


Finally restart the server :)

2 comments:

  1. Hi Hrishikesh Maluskar , Thanks for knowledge sharing >Content represented in the site is very good and informative . I am newbie for Hybris , can you please sharing me ur mail address to me. If any queries i will reach u.

    ReplyDelete
  2. The Amazon logo, with its smile-shaped arrow, is a symbol of the positive shopping experience the company provides. amazon Logo

    ReplyDelete

Home