[Archivesspace_Users_Group] Create directories for branding resources?
James Bullen
james at hudmol.com
Fri Jun 10 20:16:23 EDT 2022
Hi,
If you want it in the <head> then you can include a file called public/views/layout_head.html.erb. This file will be included in the head. This has the advantage of avoiding having to override a template.
Cheers,
James
> On Jun 11, 2022, at 12:59 AM, Rees, John (NIH/NLM) [E] <reesj at mail.nlm.nih.gov> wrote:
>
> Kyle,
>
> We stick ours in /local/public <https://github.com/John-Rees/nlm-aspace-customizations/tree/main/public>/views <https://github.com/John-Rees/nlm-aspace-customizations/tree/main/public/views>/layouts <https://github.com/John-Rees/nlm-aspace-customizations/tree/main/public/views/layouts>/application.html.erb
>
> https://github.com/John-Rees/nlm-aspace-customizations/blob/main/public/views/layouts/application.html.erb <https://github.com/John-Rees/nlm-aspace-customizations/blob/main/public/views/layouts/application.html.erb>
>
>
> John P. Rees
> Archivist and Digital Resources Manager
> History of Medicine Division
> National Library of Medicine
> 301-827-4510
> Teleworking M-F 8:00AM – 4:30PM Eastern Time each day until further notice
>
>
>
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of Kyle Breneman
> Sent: Friday, June 10, 2022 10:24 AM
> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
> Subject: [EXTERNAL] Re: [Archivesspace_Users_Group] Create directories for branding resources?
>
> Dear James,
>
> Yes, this is very helpful! Thank you for taking the time to reply to my question.
>
> I’ve now got my branding changes in place under the /local plugin directory.
>
> How do I go about including our Google Tag Manager tracking snippet? I need to insert code in the <head> of each page, and also right after the opening <body> tag. Should that also be done via the /local plugin files? If so, which file(s)? I couldn’t find documentation on this.
>
> Regards,
>
> Kyle Breneman
> Integrated Digital Services Librarian
> The University of Baltimore
> kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>
> I believe in freedom of thought and
> freedom of speech. Do you?
>
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of James Bullen
> Sent: Thursday, June 9, 2022 7:49 PM
> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
> Subject: Re: [Archivesspace_Users_Group] Create directories for branding resources?
>
> [EXTERNAL EMAIL: This message originated from a non-UBalt email system. Hover over any links before clicking and use caution when opening attachments.]
>
>
> Hi Kyle,
>
> Those directions are written assuming you’re working on a development instance. When you’re running from a distribution the file paths referred to are contained in war files, so you don’t see them.
>
> You do not need to create public/app/views/shared/_header.html.erb - that exists within wars/public.war
>
> To override that file you would place your new version in plugins/yourplugin/public/views/shared/_header.html.erb
>
> Hope that helps.
>
>
> Cheers,
> James
>
>
>
> On Jun 10, 2022, at 3:05 AM, Kyle Breneman <kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>> wrote:
>
> I’m trying to follow these directions <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.github.io%2Ftech-docs%2Fcustomization%2Ftheming.html&data=05%7C01%7Creesj%40mail.nlm.nih.gov%7Ce3c44a56698940eab47e08da4aecda70%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C637904678387804526%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qozHeE%2Fe02MZBVTUWioy9h9zBbTS29qJEV0UGEa8NHg%3D&reserved=0> for customizing our ArchivesSpace 3.2.0 instance.
>
> While the directions clearly state that some/all of the directories in the path to store a branding image will need to be created, I was not expecting to need to create the public/app/views/shared/_header.html.erb file, or those directories, yet they do not seem to exist in my installation (below). Should I proceed to create these directories, along with the _header.html.erb file?
>
> <image001.png>
>
> Kyle Breneman
> Integrated Digital Services Librarian
> The University of Baltimore
> kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>
> I believe in freedom of thought and
> freedom of speech. Do you?
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=05%7C01%7Creesj%40mail.nlm.nih.gov%7Ce3c44a56698940eab47e08da4aecda70%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C637904678387804526%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dtoeBXf7xaD5ltwVP7vYKMZdv6obV7KTHvEMRg6WZUs%3D&reserved=0>
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and are confident the content is safe.
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220611/ab2da4eb/attachment.html>
More information about the Archivesspace_Users_Group
mailing list