Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-840

#useravatar macro not usable with the albatross skin, the required 'avatar' user prop is not accessible

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Incomplete
    • Major
    • None
    • 1.0 B3, 1.0 B6
    • None
    • None
    • Low

    Description

      The useravatar macro checks the avatar property in the user object:

              #if($profileobj.avatar && $profileobj.avatar != "")
                #foreach ($attach in $profiledoc.attachmentList)
                  #if($attach.filename == $profileobj.avatar)
                    #set($hasavatar = 1)
                  #end
                #end
              #end
      

      The avatar property is not available from a profile screen (I think). Users should be able to select which attachment is the avatar image. Or, a simpler solution, just use the last image/attachment.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              melvng Melv Ng
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: