Updating Themes

For issues with installing and configuring the Archon software to begin running on your webserver.

Moderators: paulnsorensen, kylefox2, prom, rishel

Updating Themes

Postby prom » Mon Mar 30, 2009 1:10 pm

In order the migrate a theme from one version of Archon to another, copy the folder themes/mytheme from your old archon installation into the new archon folder. It will appear as an option under the Archon Configuration->Default Theme Menu, where it can be selected as the default theme that will appear on your sit.e

If you wish to apply a theme developed under Archon 2.21 or earlier in version 2.22 or later, the following instructions provide some guidance.

OPTION 1: Retain the theme files, as well as the template set that functioned with the old theme. Unless you developed your own templates, you can use the ‘defaultold’ templateset supplied with this version of Archon by setting it as the default template set under the Archon Configuration area. See section 7.3.3 of the user manual for more information.

OPTION 2: Option 2 is more complex, but will preserve the highest level of functionality and forward compatibility.

Step 1: If you are migrating from version 2.02 or earlier, copy the information from the final section of the new default theme’s style.css file to your old theme’s stylesheet, and make necessary adjustments to the theme. Use the default template. More complete information is provided in section 7.3.3.

Step 2: Adjust or add selectors for the controlcard and accessions views in your theme’s style.css as specified here:

In section /* used in default template's accession.inc.php */

a. Add the follow selector:

#accessionleft {
clear:left;
float:left;
width:45%;
}

b. Rename current selector #accessioncontents to #accessionpublic, set width property to 100%, and adjust the other properties as desired.

c. Copy #accessionpublic and make a new selector #accessionstaff. Adjust its properties as desired.

d. After the selector for .accessionlabel, add the following new selector:

.accessionstafflabel {
font-size:1.3em;
color:red;
}

In section /* used in default template's controlcard.inc.php */

a. Add the follow selector:

#ccardleft {
clear:left;
float:left;
width:45%;
}

b. Rename current selector #ccardcontents to #ccardpublic, set width property to 100%, and adjust other properties as desired.

c. Copy #ccardpublic and make a new selector #ccardstaff. Adjust its properties as desired.

d. After the selector for .ccardlabel, add the following new selector:

.ccardstafflabel {
font-size:1.3em;
color:red;
}

IMPORTANT: You should carefully consider the disadvantages of not migrating forward; in general, you will lose a great deal of functionality by not employing option 2, which entails migrating forward to the highest level of functionality and web standards/accessibility compliance.
Chris Prom
Assistant University Archivist
Archon co-Project Director
217 333 0798
prom
 
Posts: 144
Joined: Thu Sep 13, 2007 8:57 am
Location: U Illinois

Re: Updating Themes

Postby david.b.malone » Tue Jul 28, 2009 1:45 pm

Are any changes necessary for those of us moving from versions more recent than 2.01? (e.g. 2.1 or something like that)

David
David B. Malone
Wheaton College Archives & Special Collections
david.b.malone
 
Posts: 186
Joined: Mon Apr 21, 2008 1:44 pm
Location: Wheaton, IL


Return to Installation/Configuration Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron