| I created a simple macro to save their XWiki favorites in the users profile and show it in the menu: velocity #set($u=$xcontext.getUser()) #set($d=$xwiki.getDocument($u)) #set($o=$d.getObject("Macros.Favorites", 0)) #if("$!o" == "") #set($o=$d.newObject("Macros.Favorites")) #set($x=$d.save()) #end #if("$xcontext.action" != "edit") $d.display("Links", "view", $o) #else $d.display("Links", "edit", $o) #end /velocity The Macros.Favorites class contains the field Links, which is of type TextArea. To enable easy access, the user added the Favorites macro as a gadget to their dashboard in the profile. This provided a simple way to save favorites within XWiki, which remained up to date even when the referenced page was moved. Since the upgrade from XWiki 12.10.9 to 17.8.0, the entered data is no longer saved, and new favorites cannot be added. |