[Archivesspace_Users_Group] Problem with adding logo

Kevin Clair Kevin.Clair at du.edu
Wed May 20 16:34:41 EDT 2015


My other thought would be to check and make sure you're adding these files to /plugins/local/frontend as well. /public only sets it up for the public site, so if you're going to your staff site it will still show the ArchivesSpace default.  -k
________________________________________
From: Mark Cyzyk [mcyzyk at jhu.edu]
Sent: Wednesday, May 20, 2015 2:21 PM
To: Kevin Clair; Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Problem with adding logo

Thanks, Kevin!  (And nice logo.)

Yes, I checked that. I also thought maybe there were permissions issues
with my logo.png file and my _branding.html.erb files, but have checked
and they are fine.  Finally, seeing that your directory tree does not
include the intermediary /my_archive/ directory I figured that's just an
unneeded convention, so I copied my file down a directory and edited
_branding.html.erb to point to the new location.  Reboot ArchivesSpace
-- and still nothing!  Thinking...

Mark

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Mark Cyzyk, M.A., M.L.S.
Scholarly Communication Architect
User Interface Applications Group
The Sheridan Libraries
The Johns Hopkins University
mcyzyk at jhu.edu

Verba volant, scripta manent.


On 5/20/2015 3:40 PM, Kevin Clair wrote:
> Hi Mark,
>
> Did you point the <img> link in _branding.html.erb to your logo image? That may be the problem. Our _branding.html.erb file reads like this, for example:
>
> <div class="container branding">
>      <img src="/assets/images/UniversityOfDenver-Signature.png"/>
> </div>
>
> With the results visible at http://duarchives.coalliance.org.
>
> -k
> ________________________________________
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org [archivesspace_users_group-bounces at lyralists.lyrasis.org] on behalf of Mark Cyzyk [mcyzyk at jhu.edu]
> Sent: Wednesday, May 20, 2015 1:30 PM
> To: archivesspace_users_group at lyralists.lyrasis.org
> Subject: [Archivesspace_Users_Group] Problem with adding logo
>
> All,
>
> I am trying to add our logo to the top of our ArchivesSpace instance and
> am thoroughly confused!  I am using these directions:
>
>> A good first place to go is the layouts/application.html.erb file,
>> which is the Rails default layout for the entire site. Looking through
>> this file, we can see the branding is being rendered in the
>> site/branding.html.erb file, which is a very simple file with pretty
>> much just a link and image tag.
>>
>> So, first let's add out image file to the
>> "plugins/local/public/assets/images/my_archive/logo.png" then let's
>> override the default view by making a file in
>> plugins/local/public/views/site/_branding.html.erb
>
> (This is from the "Customizing and Theming ArchivesSpace" doc on the
> Website...)
>
> First off, I do not have a /layouts/ directory anywhere in my
> ArchivesSpace directory tree.
>
> More, I did not have a /plugins/local/public/assets/images/my_archive/
> directory, so I created one.  Still more, I did not have a
> /plugins/local/public/views/site/ directory so I created one.
>
> I then put my logo.png file in
> /plugins/local/public/assets/images/my_archive/.
>
> I then put my _branding.html.erb file in
> /plugins/local/public/views/site/.  (I'm assuming that underscore
> character at the beginning of _branding.html.erb is crucially significant.)
>
> I chown'ed and chgrp'ed these directory trees and the files in them.
> All is well.
>
> I rebooted my ArchivesSpace instance and waited for the moment when I
> would spin in my chair in triumphant glee.
>
> No joy!  Same ArchivesSpace logo at top.
>
> Not sure what I'm doing wrong.  Advice much appreciated.
>
> Mark
>
> --
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Mark Cyzyk, M.A., M.L.S.
> Scholarly Communication Architect
> User Interface Applications Group
> The Sheridan Libraries
> The Johns Hopkins University
> mcyzyk at jhu.edu
>
> Verba volant, scripta manent.
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>





More information about the Archivesspace_Users_Group mailing list