cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to set a background image for the dashboard?

tyler_lovejoy
Champ on-the-rise
Champ on-the-rise

What is the best way to set a background image for the dashboard?  I want it the same across all the dashboards.  I tried using the themes, but this changed it for every page, and I just want it on the different dashboards.  

Thanks!!!

1 ACCEPTED ANSWER

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Tyler,

In order to change background of your dashboard you need to create new class in presentation.css

eg.

.alfresco-share .sticky-wrapper1
{
   background: url(images/<your-image-name>.jpg);
}
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

and add your image in images folder share/themes/<your-themes>/images, then apply it on dashboard.ftl file

<div id="bd" class="sticky-wrapper1">
<@layout.grid gridColumns gridClass "component" />
</div> ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Note: Instead of making changes directly in share specific files, override them.

Thanks,

Kalpesh

ContCentric

View answer in original post

2 REPLIES 2

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Tyler,

In order to change background of your dashboard you need to create new class in presentation.css

eg.

.alfresco-share .sticky-wrapper1
{
   background: url(images/<your-image-name>.jpg);
}
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

and add your image in images folder share/themes/<your-themes>/images, then apply it on dashboard.ftl file

<div id="bd" class="sticky-wrapper1">
<@layout.grid gridColumns gridClass "component" />
</div> ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Note: Instead of making changes directly in share specific files, override them.

Thanks,

Kalpesh

ContCentric

Thanks this is the perfect solution I was looking for, wasnt sure if it was already built it, but adding it was easy.

I copied the dashboard file from here -> \tomcat\webapps\share\WEB-INF\classes\alfresco\templates\org\alfresco -> \tomcat\shared\classes\alfresco\web-extension\templates\org\alfresco

Then updated all my themes, and bam, perfect!!!