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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.0 B3, 1.0 B6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Development Priority:
      Low
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: