[Archivesspace_Users_Group] Multiple Views?
Chris Fitzpatrick
Chris.Fitzpatrick at lyrasis.org
Mon Sep 22 15:02:14 EDT 2014
Hi Chris,
Well, this is possible, but... it would require a plugin.
The public app is a Rails app, so themes are in that Rails convention.
You would probably have to override this helper:
https://github.com/archivesspace/archivesspace/blob/master/public/app/helpers/application_helper.rb#L3-L8
Something that checks if there's a defined them for the selected repository...like
def include_theme_css
css = ""
# pull in bootstrap
css += stylesheet_link_tag("themes/#{ArchivesSpacePublic::Application.config.public_theme}/bootstrap", :media => "all")
# if there's a repo_id, include the css them found in app/assets/stylesheets/themes/default/{REPO_ID}.less
if params[:repo_id]
css += stylesheet_link_tag("themes/#{ArchivesSpacePublic::Application.config.public_theme}/#{params[:repo_id]", :media => "all")
else
# not repo_id param, just use the application default
css += stylesheet_link_tag("themes/#{ArchivesSpacePublic::Application.config.public_theme}/application", :media => "all")
end
css.html_safe
end
Something like that...
b,chris.
Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat | Phone: 918.236.6048
http://archivesspace.org/
________________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Prom, Christopher John <prom at illinois.edu>
Sent: Friday, September 19, 2014 2:55 PM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Multiple Views?
We are beginning to look at customization options. If I understand the plugins/local folder, it allows you to override the existing styles/ themes view.
Question: Is is possible to use multiple themes in the public interface. For example, repository A wishes to have a blue -based theme, and repository B a brown-based theme. Is this supported?
Chris Prom
University of Illinois at Urbana-Champaign
_______________________________________________
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