You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Laurent Gauthier (JIRA)" <ji...@codehaus.org> on 2013/10/17 15:22:52 UTC
[jira] (MSKINS-87) Add possibility to refer to external CSS in
fluido skin configuration
Laurent Gauthier created MSKINS-87:
--------------------------------------
Summary: Add possibility to refer to external CSS in fluido skin configuration
Key: MSKINS-87
URL: https://jira.codehaus.org/browse/MSKINS-87
Project: Maven Skins
Issue Type: Improvement
Components: Fluido Skin
Affects Versions: fluido-1.3.0
Reporter: Laurent Gauthier
This is a proposed and tested enhancement to the fluido skin custom config to allow the addition of one or more links to CSS files in generated html. The enhanced custom config supports a <cssLinks> element as in the following example:
<custom>
<fluidoSkin>
<topBarEnabled>true</topBarEnabled>
<topBarIcon>
<!-- To be completed -->
</topBarIcon>
<cssLinks>
    <cssLink>
http://server.name.domaine/path/to/stylesheet.css</cssLink>
  </cssLinks>
  </fluidoSkin>
</custom>
The site.vm velocity template file must be modified to include the following snippet at line 783 (v1.3.0):
#if ( $decoration.custom.getChild( 'fluidoSkin' )
   && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'cssLinks' ))
  #foreach( $item in $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'cssLinks').getChildren() )
        <link rel="stylesheet" href="$item.getValue()" />      Â
  #end     Â
#end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira