You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Child publishers will need the ability to inherit its parent publisher's theme and database information in views. It will also need to be able to override those things to allow for custom branding at the child publisher level.
Currently we set a publisher's theme by passing a class to the view. For example in app/views/press_catalog/index.html.erb we do:
<% provide :page_title, @press.name %>
<% provide :page_class, 'press' %>
<div id="maincontent">
<%= render 'press_catalog/press_results' %>
Which then adds the publisher's subdomain to the body, for example:
<body class="michigan">
For a child publisher to have its parent's and its own theme present, we will need to have both the child's subdomain and the parent publisher's subdomain added to the page. For example:
<body class="michigan gabii">
If a child publisher has a parent publisher, add its parent's subdomain across various views
The child publisher subdomain should always come second
The text was updated successfully, but these errors were encountered:
If using publisher instead of sub-brand, none of this may be necessary.
jmcglone
changed the title
Allow sub-brands to override publisher themes
Allow child publishers to inherit parent publisher themes
Dec 7, 2017
jmcglone
changed the title
Allow child publishers to inherit parent publisher themes
Allow child publisher to inherit parent publisher theme
Dec 7, 2017
Child publishers will need the ability to inherit its parent publisher's theme and database information in views. It will also need to be able to override those things to allow for custom branding at the child publisher level.
Currently we set a publisher's theme by passing a class to the view. For example in
app/views/press_catalog/index.html.erb
we do:Which then adds the publisher's subdomain to the
body
, for example:For a child publisher to have its parent's and its own theme present, we will need to have both the child's subdomain and the parent publisher's subdomain added to the page. For example:
The text was updated successfully, but these errors were encountered: