Uploaded image for project: 'Maven Skins'
  1. Maven Skins
  2. MSKINS-81

Decoration model body/footer not correctly implemented by site.vm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • fluido-1.3.0, fluido-1.3.1
    • fluido-1.4
    • Fluido Skin
    • None

    Description

      Documenation for /body/footer says:

      If present, the contained text will be used instead of the generated copyright text.

      The default skin does this correctly with:

      <div id="footer">
            <div class="xright">
            #if($decoration.body.footer)
              $decoration.body.footer
            #else
              Copyright &#169;#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )
            #end
            </div>
            <div class="clear">
              <hr/>
            </div>
      

      Unfortunately, this skin does not observe that and simply appends the content:

      <div class="row">
                #if ( $decoration.custom.getChild( 'fluidoSkin' ) && $decoration.custom.getChild( 'fluidoSkin' ).getChild('copyrightStyle') )
                  <p class="$decoration.custom.getChild( 'fluidoSkin' ).getChild('copyrightStyle').getValue()">Copyright &copy;#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )</p>
                #else
                  <p class="span12">Copyright &copy;#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )</p>
                #end
      
              </div>
      
              #if ( $decoration.body.footer )
                #foreach( $item in $decoration.body.footer.getChildren() )
                  #set ( $foot = $item.toString().trim() )
                  #set ( $documentHeader = '<?xml version="1.0" encoding="UTF-8"?>' )
                  #set ( $foot = $StringUtils.replace( $foot.toString(), $documentHeader, "" ) )
                  ## Workaround for http://jira.codehaus.org/browse/MSITE-135
                  ## Use StringUtils untill http://jira.codehaus.org/browse/DOXIASITETOOLS-67 is fixed
                  ## #eval macro not supported yet, that is a silly turnaround to allow ASF projects adopt fluido
                  $StringUtils.replace( $foot, '@project.name@', ${project.name} )
                #end
              #end
      

      So, footer cannot be exchanged.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: