AnsweredAssumed Answered

Extension module to customize login CSS

Question asked by alejandrogarciaseco on Dec 5, 2012
Latest reply on Dec 12, 2012 by alejandrogarciaseco
Hi folks,

My this thread is strictly related to another thread about the same topic which already exists (https://forums.alfresco.com/en/viewtopic.php?f=47&t=42921). I have decided to go with the extension based approach, because I guess is the most suitable for most scenarios, correct me if I'm wrong.

I have followed the instructions of this Dave's blog entry(http://blogs.alfresco.com/wp/ddraper/2012/01/04/extensibilty-updates-roundup/) and I have the defined the next extension XML:


<extension>
   <modules>
      <module>
         <id>Provides a custom "login.css" that overrides required selectors.</id>
         <auto-deploy>true</auto-deploy>
         <customizations>
            <customization>
               <targetPackageRoot>org.alfresco.global</targetPackageRoot>
               <dependencies>
                  <css>/res/mycompany/login.css</css>
               </dependencies>
               <sourcePackageRoot></sourcePackageRoot>
            </customization>
         </customizations>
      </module>
   </modules>
</extension>

Note: I have added the empty tag <sourcePackageRoot></sourcePackageRoot>, otherwise I get this error: "“sourceTargetPackageRoot is required".

My custom CSS is located in the path META-INF/mycompany/login.css within the JAR file after building.

I'm just trying to override some selectors, but doesn't work, I have inspected the resultant HTML file in the browser and I don't see my CSS file imported in the HTML <head>. Any tip?

Thanks.

Regards.

Outcomes