How can I change main logo in OpenCms to my company logo ?
The path:
/opencms/export/system/modules/com.alkacon.bootstrap.formatters/resources/img/logo/logo_opencms_png24.png_1704647694.png
How can I change main logo in OpenCms to my company logo ?
The path:
/opencms/export/system/modules/com.alkacon.bootstrap.formatters/resources/img/logo/logo_opencms_png24.png_1704647694.png
I'm new in OpenCms too. I think you want to change the main menu from demo, so you can see the formatter by clickin on the containterpage>edit.
In my case v9 there is a formatter "navigation-main.jsp" this formatter is for elements "bs-navigation".
So in the "navigation-main.jsp" line 31, you have something like this:
<cms:img scaleType="2" scaleColor="transparent" height="40" id="logo-header" src="%(link.weak:/system/modules/com.alkacon.bootstrap.formatters/resources/img/logo/logo_opencms_png24.png:aa1519ad-1abc-11e3-9246-000c29f9a2ec)" alt="Logo"/>
If you don't want the user change the logo, just change the src for your logo company.
If you want the users could changed the logo, just change the src value for ${value.LogoLink}
this is the same field from your schema "navigation.xsd"
Example:
<cms:img scaleType="2" scaleColor="transparent" height="40" id="logo-header" src="${value.LogoLink}" alt="Logo"/>
depend of the server config (tomcat, jetty, jboss or something else) you will need to delete cache. In the case of jboss de config you need to set the developer mode to see the changes right the way or you need to restart to se the changes.
To delete image cache: go to site:/ in view: Administration>select Cache Administration>click on Image Cache>select a day before today>ok
Sorry for the bad English
In OpenCms workplace, select site /, then navigate to the folder
/opencms/export/system/modules/com.alkacon.bootstrap.formatters/resources/img/logo/
and replace the file
logo_opencms_png24.png
with your own png (but same file name). (You could backup the original file beforehand).
This way you don't need to touch the jsp file.
Then also make sure you publish the file, by clicking on the file icon, then select "Publish directly". This should then export the file from the OpenCms VFS (Virtual File System) to the RFS (Real File System) and into it's export folder.
This approach above, replacing the image instead of modifying the jsp, is that your logo will then appear anywhere where the logo_opencms_png24.png
is being used, and you don't need to modify multiple jsp's.