<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change favicon and footer image on changing theme in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117090#M32412</link>
    <description>&lt;P&gt;Hello.&lt;BR /&gt;Is it possible to change the email template (activities-email.ftl) logo dynamically according to the theme?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 21:39:35 GMT</pubDate>
    <dc:creator>édnei</dc:creator>
    <dc:date>2023-09-13T21:39:35Z</dc:date>
    <item>
      <title>Change favicon and footer image on changing theme</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117086#M32408</link>
      <description>&lt;P&gt;We are doing branding of our application and after reading documentation and suggestions found on this forum, we implemented a theme.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/concepts/dev-extensions-share-themes.html" target="_self" rel="nofollow noopener noreferrer"&gt;Theme documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything works but favicon and footer image remains same as default (alfresco favicon).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to fix this issue? We tried messing up with css and stuff but it didn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 14:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117086#M32408</guid>
      <dc:creator>bip1989</dc:creator>
      <dc:date>2020-09-12T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change favicon and footer image on changing theme</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117087#M32409</link>
      <description>&lt;P&gt;For using dynamic changes in themes, we need to rely on themeId and prepare the resource path accordingly. You can get the &lt;A href="https://docs.alfresco.com/5.2/references/APISurf-rootscoped.html" target="_blank" rel="noopener nofollow noreferrer"&gt;themeId&lt;/A&gt; and put it in the model object and use it in the header template or access the &lt;A href="https://docs.alfresco.com/5.2/references/APISurf-templates.html" target="_blank" rel="noopener nofollow noreferrer"&gt;themeId&lt;/A&gt; in header template from rootscoped object &lt;STRONG&gt;"${theme}"&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/references/APISurf-rootscoped.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/references/APISurf-rootscoped.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/references/APISurf-templates.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/references/APISurf-templates.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can extend the &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/head/resources.get.desc.xml" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;STRONG&gt;resources webscript &lt;/STRONG&gt;&lt;/A&gt;in your share module using recommended share extension point where&amp;nbsp; targetPackageRoot would be 'org.alfresco.components.head', and update the "&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/head/resources.get.html.ftl" target="_blank" rel="noopener nofollow noreferrer"&gt;resources.get.html.ftl&lt;/A&gt;" template's "&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/head/resources.get.html.ftl#L5" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;STRONG&gt;favicons&lt;/STRONG&gt;&lt;/A&gt;" markup directive to provide theme specific favicon paths.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;@markup id="custom-favicons" target="favicons" action="replace" scope="global"&amp;gt;
  &amp;lt;link rel="shortcut icon" href="${url.context}/res/themes/&lt;STRONG&gt;${theme}&lt;/STRONG&gt;/images/&lt;STRONG&gt;&lt;EM&gt;${msg(theme + ".favicon")}&lt;/EM&gt;&lt;/STRONG&gt;" type="image/vnd.microsoft.icon" /&amp;gt;
  &amp;lt;link rel="icon" href="${url.context}/res/themes/&lt;STRONG&gt;${theme}&lt;/STRONG&gt;/images/&lt;STRONG&gt;&lt;EM&gt;${msg(theme + ".favicon")}&lt;/EM&gt;&lt;/STRONG&gt;" type="image/vnd.microsoft.icon" /&amp;gt;
&amp;lt;/@&amp;gt;&lt;/PRE&gt;
&lt;P&gt;For footer images, you have to update "&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/webapp/themes/default/presentation.css" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;presentation.css&lt;/STRONG&gt;&lt;/A&gt;" for every theme you are creating and add community/enterprise version specific css which will take effect when you change the theme and footer images will change as per css definition.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;.footer-ent .copyright.copyright {
	margin: 0 auto;
	width: 449px;
	display: block;
}

.footer-ent .copyright.copyright img {
	content:
&lt;EM&gt;&lt;STRONG&gt;		url("/share/res/js/alfresco/footer/css/images/demo-blue-logo.png")
&lt;/STRONG&gt;&lt;/EM&gt;}

.footer-ent .copyright.copyright img:after {
	background:
&lt;EM&gt;&lt;STRONG&gt;		url("/share/res/js/alfresco/footer/css/images/demo-blue-logo.png")
&lt;/STRONG&gt;&lt;/EM&gt;}

.footer-com .copyright.copyright {
   display: inline-block;
   line-height: 22px;
   padding: 2px;
}

.footer-com .copyright.copyright img {
	content:
&lt;EM&gt;&lt;STRONG&gt;		url("/share/res/js/alfresco/footer/css/images/demo-blue-logo.png")
&lt;/STRONG&gt;&lt;/EM&gt;}

.footer-com .copyright.copyright img:after {
	background:
&lt;EM&gt;&lt;STRONG&gt;		url("/share/res/js/alfresco/footer/css/images/demo-blue-logo.png")
&lt;/STRONG&gt;&lt;/EM&gt;}
&lt;/PRE&gt;
&lt;P&gt;You can find custom theme related info here as well:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-background-color-change/td-p/300189" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-background-color-change/td-p/300189&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 19:56:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117087#M32409</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-09-13T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change favicon and footer image on changing theme</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117088#M32410</link>
      <description>&lt;P&gt;This worked. Thnx for help&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:23:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117088#M32410</guid>
      <dc:creator>bip1989</dc:creator>
      <dc:date>2020-09-15T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change favicon and footer image on changing theme</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117089#M32411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/2009"&gt;@bip1989&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for updating your post.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:23:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117089#M32411</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-09-21T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change favicon and footer image on changing theme</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117090#M32412</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;Is it possible to change the email template (activities-email.ftl) logo dynamically according to the theme?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 21:39:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/change-favicon-and-footer-image-on-changing-theme/m-p/117090#M32412</guid>
      <dc:creator>édnei</dc:creator>
      <dc:date>2023-09-13T21:39:35Z</dc:date>
    </item>
  </channel>
</rss>

