cancel
Showing results for 
Search instead for 
Did you mean: 

Creating new themes in 3.3

mlung
Champ in-the-making
Champ in-the-making
Hi All,
I tried to create a new theme for Share in 3.3 by copying from an exiting theme. Searched and replaced all strings in pesentation.css and skin.css and now the theme dropdown list is empty. Wondering if I missed a step.
I copied greenTheme directory to blueTheme directory and replaced all refs from greenTheme to blueTheme in blueTheme/presentation.css and blueTheme/yui/assets/skin.css .  I also created a new file blueTheme.xml in tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/themes.

Is this a bug or is there something else I need to do for the new theme to appear in the list ?  Right now the list is empty.

Btw, the installation document for 3.3 describes how th create themes but does not talk about the xml file in ../site-data/themes.

Thanks in advance…..
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
Could you post the contents of the blueTheme.xml please?

Also, when you say the list is empty - is there an error on the page (maybe only visible via "view source")?

Thanks,
Mike

mlung
Champ in-the-making
Champ in-the-making
<?xml version='1.0' encoding='UTF-8'?>
<theme>
   <title>Blue Theme</title>
   <title-id>theme.blueTheme</title-id>
</theme>

The directory name is 'blueTheme'.  
Appending   ?theme=blueTheme to the url  works fine.

There are no error either in the logs or in the page source. The source reads:


<div class="row">
            <span class="label">Theme:</span>
            <div class="flat-button">
               <select id="console-options-theme-menu">
               </select>
            </div>
         </div>

I also re-installed 3.3 but instead of copying greenTheme I simply edited the css and the images within greenTheme. I still get empty dropdown list after I make the changes.

mikeh
Star Contributor
Star Contributor
The only thing I can think of is that there's a bug if the i18n message is missing. What happens if you change your blueTheme.xml to:
<?xml version='1.0' encoding='UTF-8'?>
<theme>
   <title>Blue Theme</title>
   <title-id>theme.greenTheme</title-id>
</theme>
(notice the title-id change)

Thanks,
Mike

abhashree
Champ in-the-making
Champ in-the-making
I am also creating a new theme.First I copy the default theme from alfresco 3.3 edit as my requirement.Then i created go to the sitedata theme to create a xml file giving the id and title.then i change web-frame-config.xml and change the required things but not able to create the theme.Please anyone help me regarding the topic.

ryepup
Champ in-the-making
Champ in-the-making
I just got a custom theme configured for my alfresco share instance, here's how I did it.  My alfresco is running on windows, the install root is D:\Alfresco.  I don't think I'm doing anything windows specific here.

  • copied directory D:\Alfresco\tomcat\webapps\share\themes\default as D:\Alfresco\tomcat\webapps\share\themes\mytheme

  • copied D:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\themes\default.xml to D:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\themes\mytheme.xml

  • edited the new mytheme.xml file, changed title-id content "theme.mytheme"

  • edited the new mytheme.xml file, changed title content to "My Theme"

  • restart alfresco service

  • open a browser to http://localhost/share (or whereever your share instance is running)

  • login as admin

  • goto admin console (in the top right)

  • select "My Theme" from the theme dropdown and hit apply
edit: bbcode syntax fixes

beemoon
Champ in-the-making
Champ in-the-making
Hello,
I'm looking for somebody to try my Share theme (testing on 3.3g)
It's an AMP file

use this howto: http://wiki.alfresco.com/wiki/Module_Management_Tool

download 3.3g mmt: http://process.alfresco.com/ccdl/?file=release/community/build-2860/alfresco-mmt-3.3g.jar
download my theme: http://www.beemoon.fr/mesDocs/download/themebeemoon.amp


exemple:
FIRST stop share (or tomcat)
in DOS or Terminal: java -jar alfresco-mmt-3.3g.jar install themebeemoon.amp /your/share.war